Skip to content

Commit

Permalink
Move unassociation back a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Oct 3, 2024
1 parent 696bb8f commit 2b1432c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/input/SimModSuite.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ class SimModSuite : public FullStorageMeshData {
analyse_mesh();
}

if (xmlFile == nullptr) {
// unassociate case for attributes below
AttCase_unassociate(meshCase);
}

logInfo(PMU_rank()) << "Iterating over mesh to get data...";
int parts = PM_numParts(m_simMesh);
std::size_t vertexCount = 0;
Expand Down Expand Up @@ -462,7 +467,6 @@ class SimModSuite : public FullStorageMeshData {
AttCase_associate(meshCaseFile, nullptr);
MS_processSimModelerMeshingAtts(meshCaseFile, meshCase, &meshingOptions);
AttCase_setModel(meshCase, m_model);
AttCase_unassociate(meshCaseFile);

analysisCase = extractCase(attMngr, analysisCaseName);
pPList children = AttNode_children(analysisCase);
Expand Down
6 changes: 5 additions & 1 deletion src/input/SimModSuiteApf.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ class SimModSuiteApf : public ApfMeshInput {
analyse_mesh();
}

if (xmlFile == nullptr) {
// unassociate case for attributes below
AttCase_unassociate(meshCase);
}

// Convert to APF mesh
apf::Mesh* tmpMesh = apf::createMesh(m_simMesh);
gmi_register_sim();
Expand Down Expand Up @@ -342,7 +347,6 @@ class SimModSuiteApf : public ApfMeshInput {
AttCase_associate(meshCaseFile, nullptr);
MS_processSimModelerMeshingAtts(meshCaseFile, meshCase, &meshingOptions);
AttCase_setModel(meshCase, m_model);
AttCase_unassociate(meshCaseFile);

analysisCase = extractCase(attMngr, analysisCaseName);
pPList children = AttNode_children(analysisCase);
Expand Down

0 comments on commit 2b1432c

Please sign in to comment.