14 ibase_entityhandle root_set
15 ibase_entityarriterator iter
17 ibase_handle_t rpents, ents, rpdata
19 pointer(rpdata, tag_data(0:*))
20 pointer(rpents, ents(0:*))
21 pointer(ipoffsets, ioffsets(0,*))
22 integer ierr, ents_alloc, ents_size, num_regions, atend, count
25 call imesh_newmesh(
"MOAB", mesh, ierr)
28 call imesh_getrootset(%VAL(mesh), root_set, ierr)
31 call imesh_load(%VAL(mesh), %VAL(root_set),
"125hex.vtk",
"",ierr)
34 call imesh_getnumoftype(%VAL(mesh), %VAL(root_set),
35 1 %VAL(ibase_region), num_regions, ierr)
38 call imesh_initentarriter(%VAL(mesh), %VAL(root_set),
39 1 %VAL(ibase_region), %VAL(imesh_all_topologies),%VAL(num_regions),
40 1 %VAL(0), iter, ierr)
43 call imesh_createtagwithoptions(%VAL(mesh),
"dumtag",
44 1
"moab:TAG_STORAGE_TYPE=DENSE moab:TAG_DEFAULT_VALUE=0.0",
45 1 %VAL(1), %VAL(ibase_double), tagh, ierr)
48 10
call imesh_tagiterate(%VAL(mesh), %VAL(tagh), %VAL(iter),
49 1 rpdata, count, ierr)
52 call imesh_stepentarriter(%VAL(mesh), %VAL(iter), %VAL(count),
55 if (atend .eq. 0)
go to 10
58 call imesh_dtor(%VAL(mesh), ierr)