SCOREC / core

parallel finite element unstructured meshes
Other
179 stars 63 forks source link

Options for mesh adapt #342

Closed mortezah closed 3 years ago

mortezah commented 3 years ago

This pull request includes a couple of logic for setting mesh adapt options. In particular,

  1. logic to compute in->maximumIterations based on the requested size field and current mesh size.
  2. logic to invoke Pre, Post, or Mid balancer if the mesh imbalance becomes larger than in->maximumImbalance during mesh adapt.
mortezah commented 3 years ago

@cwsmith I have added this condition https://github.com/mortezah/core/blob/f9005bb6c0f158a5b66c38953d4bd4318f01a320/ma/maInput.cc#L139 to prevent setting more than one of these flags in->shouldRunPreZoltan, in->shouldRunPreZoltan, and in->shouldRunPreParma to true at the same time. However, it seems that some of the tests (for example refine2x.cc here https://github.com/SCOREC/core/blob/f5025752630b03dff41251cad1ac829d8c275a3f/test/refine2x.cc#L107) turns on both PreZoltanRib and PreParma. Any idea why both options are turned on in refine2x?