Commit 16e7d7dd authored by Alexis SALZMAN's avatar Alexis SALZMAN

Start looking to TLSGeom::cutCrack => world as a member

parent eecde403
Pipeline #162 skipped
......@@ -126,7 +126,7 @@ void IntegrationRuleSmart::accept(xCommandOnGeomElem& command, mEntity* e) const
TLSGeom::TLSGeom(xData& data,
const xParseData& parse_data,
PreProcessing& pre_pro, PostProcessing& post_pro,MPI_Comm world) :
PreProcessing& pre_pro, PostProcessing& post_pro,MPI_Comm world_) :
data(data),
post_pro(post_pro),
integ_order(parse_data.getInt("integ_order")),
......@@ -139,6 +139,7 @@ TLSGeom::TLSGeom(xData& data,
duplicated_tag(AOMD::AOMD_Util::Instance()->newMeshDataId("duplicated")),
duplicated_node_tag(AOMD::AOMD_Util::Instance()->newMeshDataId("duplicated_node")),
is_crack_tag(AOMD::AOMD_Util::Instance()->newMeshDataId("is_crack"))
,world(world_)
{
xMesh* comp_mesh;
std::list<mEntity*> nonlocal_list;
......@@ -851,10 +852,10 @@ void TLSGeom::cleanIntegrationPoints() {
void TLSGeom::cutCrack(const xEval<double>& eval_phi_minus_lc) {
if(isCracked()) {
setMesh("integ", new xMesh);
setMesh("integ", new xMesh(world));
}
else {
registerMesh("integ", new xMesh);
registerMesh("integ", new xMesh(world));
}
buildIntegMesh(eval_phi_minus_lc);
buildCompMesh();
......
......@@ -133,6 +133,8 @@ private:
const unsigned int duplicated_tag;
const unsigned int duplicated_node_tag;
const unsigned int is_crack_tag;
MPI_Comm world;
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment