12 Version(MoFEM_VERSION_MAJOR, MoFEM_VERSION_MINOR, MoFEM_VERSION_BUILD);
20 const int def_version[] = {-1, -1, -1};
22 rval = moab.tag_get_handle(
"MOFEM_VERSION", 3, MB_TYPE_INTEGER,
th,
23 MB_TAG_CREAT | MB_TAG_MESH, &def_version);
25 if (
rval == MB_ALREADY_ALLOCATED) {
26 const void *tag_data[1];
27 CHKERR moab.tag_get_by_ptr(
th, &root_meshset, 1, tag_data);
28 version_ptr = (
int *)tag_data[0];
30 const void *tag_data[1];
31 CHKERR moab.tag_get_by_ptr(
th, &root_meshset, 1, tag_data);
32 version_ptr = (
int *)tag_data[0];
33 version_ptr[0] = MoFEM_VERSION_MAJOR;
34 version_ptr[1] = MoFEM_VERSION_MINOR;
35 version_ptr[2] = MoFEM_VERSION_BUILD;
45 const int def_version[] = {-1, -1, -1};
47 rval = moab.tag_get_handle(
"MOFEM_VERSION", 3, MB_TYPE_INTEGER,
th,
48 MB_TAG_CREAT | MB_TAG_MESH, &def_version);
50 const void *tag_data[1];
51 CHKERR moab.tag_get_by_ptr(
th, &root_meshset, 1, tag_data);
52 version_ptr = (
int *)tag_data[0];
62 Version(MoFEM_VERSION_MAJOR, MoFEM_VERSION_MINOR, MoFEM_VERSION_BUILD);