*--* ex_reorder *--* Header Begin *--* LAGriT Example Input file * Carl Gable * gable -at- lanl -dot- gov * * *--* Create a random point distribution *--* Connect them into a tet mesh *--* Sort and reorder the nodes using a multi-key sort of the *--* node coordinates. *--* *--* Add attributes id_node1 and id_node2 with the node numbers *--* before and after SORT and REORDER *--* *--*---------------------------------------------------- *--* Header End *--* ex_reorder *--* cmo / create / cmo1 surface / outer / reflect / box / 0,0,0 / 1,1,1 region / r1 / le outer / mregion / m1 / le outer / createpts / random / xyz / 0.1 / 0,0,0 / 1,1,1 setpts dump / gmv / output_points.gmv connect dump / gmv / output_tets.gmv cmo / set_id / cmo1 / node / id_node1 sort / cmo1 / index / ascending / ikey_n / zic yic xic reorder / cmo1 / ikey_n cmo / set_id / cmo1 / node / id_node2 dump / gmv / output_sort_node.gmv createpts / median cmo / set_id / cmo1 / element / id_elem1 sort / cmo1 / index / ascending / ikey_e / zmed ymed xmed reorder / cmo1 / ikey_e cmo / set_id / cmo1 / element / id_elem2 dump / gmv / output_tets_reorder.gmv * begin compare here cmo / status cmo / printatt / / -all- / minmax quality finish