39 #include "MeshSet.hpp"
40 #include "MsqTimer.hpp"
41 #include "MsqDebug.hpp"
123 bool next_patch =
true;
134 patch_data = &local_patch_data;
220 }
while (next_patch);
void update_mesh(MsqError &err)
Updates the underlying mesh (the Mesquite::Mesh implementation) with new node coordinates and flag va...
virtual void terminate_mesh_iteration(PatchData &, MsqError &err)=0
void cleanup(MeshSet &ms, MsqError &err)
Cleans up after the TerminationCriterion is finished.
Used to hold the error state and return it to the application.
void accumulate_patch(PatchData &pd, MsqError &err)
Common code for both inner and outer termination criteria during inner iteration. ...
Base class for all quality improvers. Mote that the PatchData settings are inherited from the PathDat...
void set_mesh_set(MeshSet *ms)
The TerminationCriterion class contains functionality to terminate the VertexMover's optimization...
void reset_outer(MeshSet &ms, ObjectiveFunction *of, MsqError &err)
Clear any data accumulated during an outer iteration.
void reset_inner(PatchData &pd, ObjectiveFunction *of, MsqError &err)
Clear any data accumulated during an inner iteration.
bool terminate()
Check if termination criterion has been met.
bool cull_vertices(PatchData &pd, ObjectiveFunction *obj_ptr, MsqError &err)
Function which determines whether this patch should be 'culled'.
void reset_patch(PatchData &pd, MsqError &err)
Shared inner and outer initialization during inner loop.
void set_debug_output_level(int i)
virtual double loop_over_mesh(MeshSet &ms, MsqError &err)
Improves the quality of the MeshSet, calling some methods specified in a class derived from VertexMov...
#define MSQ_CHKERR(err)
Mesquite's Error Checking macro.
#define MSQ_SETERR(err)
Macro to set error - use err.clear() to clear.
ObjectiveFunction * objFunc
PatchData::PatchType get_patch_type()
Returns the Patch Type.
virtual void initialize(PatchData &pd, MsqError &err)=0
TerminationCriterion * get_inner_termination_criterion()
return the inner termination criterion pointer
TerminationCriterion * get_outer_termination_criterion()
return the outer termination criterion pointer
PatchData * get_global_patch()
Returns the Global Patch.
virtual void optimize_vertex_positions(PatchData &pd, MsqError &err)=0
object is in an invalid state
void accumulate_outer(MeshSet &ms, MsqError &err)
The MeshSet class stores one or more Mesquite::Mesh pointers and manages access to the mesh informati...
void reset(MsqError &err)
Resets the MeshSet object so that get_next_patch() will restart its iterations at the first vertex...
bool get_next_patch(PatchData &pd, PatchDataUser *pd_user, MsqError &err)
Gets the next PatchData.
virtual void initialize_mesh_iteration(PatchData &pd, MsqError &err)=0