Compare two MOAB .h5m files that represent the same mesh and emit a third file that carries the per-tag differences. The inputs must share GLOBAL_ID values on their elements, but their EntityHandle values can differ arbitrarily (e.g. because the two files were partitioned differently or saved by different MPI rank counts).
Output is an .h5m file derived from one of the inputs, with an extra tag per compared tag whose value is the difference (file1_value − file2_value) per entity.
Binary name on disk is
mbcmpfiles.
| Flag | Default | Description |
|---|---|---|
-i <file1.h5m>, --input1 <file1.h5m> | — | First input mesh. |
-j <file2.h5m>, --input2 <file2.h5m> | — | Second input mesh. |
-o <out.h5m>, --outfile <out.h5m> | — | Output file with the per-tag difference fields added. |
-n <tag>, --tagname <tag> | *(all tags)* | Restrict the comparison to a single tag. If unset, every tag found on both files is compared. |
-d <dim>, --dimension <dim> | — | Topological dimension of entities to compare (0 vertices, 1 edges, 2 faces, 3 cells). |
GLOBAL_ID so corresponding entities can be matched across the two files even when their EntityHandle values differ.file1 − file2 per entity and stores the result as a new tag on the chosen entity range.<out.h5m>. The output preserves the topology of file 1 plus the new difference tags.After the run, open diff.h5m in your favorite viewer (ParaView via the MOAB plugin, VisIt) and look at the new difference tag — anywhere it's non-zero is where the two files disagree.
DOUBLE tag in file 1 against an INTEGER tag of the same name in file 2).