split_info_t* split_create(char *fname, u64 split_size, u64 total_size, bool overwrite) { split_info_t *s = split_new(); int ret = split_create_1(s, fname, split_size, total_size, overwrite); if (ret) { split_close(s); s = NULL; } return s; }
split_info_t* split_open(char *fname) { split_info_t *s = split_new(); int ret = split_open_1(s, fname); if (ret) { split_close(s); s = NULL; } return s; }
void mesh_refine(mesh* m, mflag* f) { the_split = split_new(m); cavity_exec_flagged(m, f, refine_op, mesh_elem(m)); split_free(the_split); }