Definition at line 42 of file Refine.H.
void NEM::ADP::Refine::run |
( |
bool |
transferData, |
|
|
bool |
bndryConstraint = false |
|
) |
| |
Definition at line 161 of file Refine.C.
References adapter, bnd, bndrConst, NEM::DRV::TransferDriver::CreateTransferObject(), meshBase::exportGmshToVtk(), meshBase::getNewArrayNames(), MadMesh, mesh, ofname, meshBase::report(), meshBase::setFileName(), unClassifyBoundaries(), and meshBase::write().
Referenced by meshBase::refineMesh().
163 std::cerr <<
"Adapter hasn't been constructed!" << std::endl;
171 std::cout <<
"Statistics before refinement: " << std::endl;
172 adapter->printStatistics(std::cout);
175 std::cout <<
"Refining the mesh ..." << std::endl;
177 std::cout <<
"Statistics after refinement: " << std::endl;
178 adapter->printStatistics(std::cout);
181 std::cout <<
"Optimizing the mesh" << std::endl;
185 for (
int i = 0; i < 1; ++i) {
190 adapter->optimiseElementShape();
200 std::cout <<
"Statistics after optimization: " << std::endl;
201 adapter->printStatistics(std::cout);
206 MAd::M_writeMsh(
MadMesh,
"refined.msh", 2);
214 mesh, refinedVTK,
"Consistent Interpolation");
static meshBase * exportGmshToVtk(const std::string &fname)
construct vtkMesh from gmsh msh file (called in Create methods)
void setFileName(const std::string &fname)
set the file name.
A brief description of meshBase.
virtual void write() const
write the mesh to file named after the private var 'filename'.
MAd::MeshAdapter * adapter
virtual void report() const
generate a report of the mesh
std::vector< std::string > getNewArrayNames()
get new array names for use in transfer
static std::shared_ptr< TransferBase > CreateTransferObject(meshBase *srcmsh, meshBase *trgmsh, const std::string &method)
void unClassifyBoundaries()