Skip to content

Commit

Permalink
Updated gmesh.cc to handle .null models
Browse files Browse the repository at this point in the history
  • Loading branch information
mortezah committed Nov 21, 2019
1 parent e103aa3 commit 30d5d9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/gmsh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <PCU.h>
#include <lionPrint.h>
#include <cstdlib>
#include <string.h>

int main(int argc, char** argv)
{
Expand All @@ -21,6 +22,9 @@ int main(int argc, char** argv)
gmi_register_null();
gmi_register_mesh();
apf::Mesh2* m = apf::loadMdsFromGmsh(gmi_load(argv[1]), argv[2]);
// if input model is null derive a basic model for verify to pass.
if (std::string(argv[1]).compare(".null") == 0)
apf::deriveMdsModel(m);
m->verify();
m->writeNative(argv[3]);
m->destroyNative();
Expand Down

0 comments on commit 30d5d9f

Please sign in to comment.