Skip to content

Commit cd3191f

Browse files
committed
fix #134
simmodsuite provides arguably a better parallel generator now html/MeshSim/examples/meshSimModelerMeshingCase.cc
1 parent 8f769f3 commit cd3191f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/generate.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ pParMesh generate(pGModel mdl, std::string meshCaseName) {
6969
PCU_ALWAYS_ASSERT(mcaseFile);
7070

7171
AttCase_setModel(mcaseFile, mdl);
72+
AttCase_associate(mcaseFile, NULL);
7273
pACase mcase = MS_newMeshCase(mdl);
7374
MeshingOptions meshingOptions;
7475
MS_processSimModelerMeshingAtts(mcaseFile, mcase, &meshingOptions);
@@ -231,6 +232,7 @@ int main(int argc, char** argv)
231232
getConfig(argc,argv);
232233

233234
simStart();
235+
Sim_logOn("generate_sim.log");
234236
pNativeModel nm = loadNativeModel();
235237
pGModel simModel = GM_load(modelFile.c_str(), nm, NULL);
236238

@@ -254,6 +256,7 @@ int main(int argc, char** argv)
254256
apf::destroyMesh(mesh);
255257

256258
simStop();
259+
Sim_logOff();
257260
PCU_Comm_Free();
258261
MPI_Finalize();
259262
}

0 commit comments

Comments
 (0)