Skip to content

Commit

Permalink
meshAdapt fix using makeadvanced funtion for type recasting
Browse files Browse the repository at this point in the history
  • Loading branch information
jhcollins authored and cekees committed Jun 30, 2022
1 parent 713b86e commit 3587042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions proteus/MeshAdaptPUMI/cMeshAdaptPUMI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ int MeshAdaptPUMIDrvr::adaptPUMIMesh(const char* inputString)
/// Adapt the mesh
ma::Input* in;
if(size_field_config == "uniform"){
in = ma::configureUniformRefine(m);
in = ma::makeAdvanced(ma::configureUniformRefine(m));
in->shouldFixShape=false;
}
else{
Expand All @@ -778,12 +778,12 @@ int MeshAdaptPUMIDrvr::adaptPUMIMesh(const char* inputString)
adaptFrame = apf::createFieldOn(m, "adapt_frame", apf::MATRIX);
apf::copyData(adaptSize, size_scale);
apf::copyData(adaptFrame, size_frame);
in = ma::configure(m, adaptSize, adaptFrame);
in = ma::makeAdvanced(ma::configure(m, adaptSize, adaptFrame));
}
else{
adaptSize = apf::createFieldOn(m, "adapt_size", apf::SCALAR);
apf::copyData(adaptSize, size_iso);
in = ma::configure(m, adaptSize);
in = ma::makeAdvanced(ma::configure(m, adaptSize));
}
}

Expand Down
4 changes: 2 additions & 2 deletions proteus/MeshAdaptPUMI/createAnalyticGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ gmi_model* MeshAdaptPUMIDrvr::createSphereInBox(double* boxDim,double*sphereCent
gradeMesh(1.5);


ma::Input* in = ma::configure(m,size_iso);
ma::Input* in = ma::makeAdvanced(ma::configure(m,size_iso));
in->maximumIterations = 10;
in->shouldSnap = true;
in->shouldTransferParametric = true;
Expand All @@ -670,7 +670,7 @@ gmi_model* MeshAdaptPUMIDrvr::createSphereInBox(double* boxDim,double*sphereCent

gradeMesh(1.5);

in = ma::configure(m,size_iso);
in = ma::makeAdvanced(ma::configure(m,size_iso));
in->maximumIterations = 10;
in->shouldSnap = true;
in->shouldTransferParametric = true;
Expand Down

0 comments on commit 3587042

Please sign in to comment.