Skip to content

Add capAdapt test utility and framework_meshing C++14 requirement - #486

Merged
cwsmith merged 4 commits into
developfrom
apw/capAdapt
Jun 4, 2025
Merged

cwsmith merged 4 commits into
developfrom
apw/capAdapt

Conversation

@bobpaw

@bobpaw bobpaw commented May 29, 2025

Copy link
Copy Markdown
Collaborator

Add capAdapt test utility and framework_meshing C++14 requirement

  • Add capAdapt test utility to load Capstone mesh, convert to MDS, partition, adapt, join, convert back to and write CRE.
  • Update CMake linking for framework_meshing: the headers use C++14 so it needs the INTERFACE compile feature.
  • Link capAdapt against framework_meshing to call smoothing directly and avoid converting to frame/scale fields between sizing.
    • Thinking about moving the code to import from bulk sizing file (possibly with smoothing) directly into apf_cap.

bobpaw added 4 commits April 13, 2025 12:40
- apf_cap/CMakeLists.txt: change how C++14 is enabled so that capAdapt
  can compile against framework_meshing and get C++14.
  - basically, framework_meshing interfaces require C++14 so this is
    perfect.
- test/capAdapt.cc: add test utility.
- test/CMakeLists.txt: add capAdapt.

Signed-off-by: Aiden Woodruff <[email protected]>
- standardize cre2mds migration timer format.
- add mds end to end timer.

Signed-off-by: Aiden Woodruff <[email protected]>
- test/capAdapt.cc: remove stage and add log prefixes instead.
- remove unused variables.
- (makeApfInterfaceWithSizing): refactor apf::Mesh creation and size
  field loading into function.
- (parallelAdapt): refactor 1->n partition, adapt, n->1 localize into
  function with timer.
- destroy empty remote MDS meshes.

Signed-off-by: Aiden Woodruff <[email protected]>
Signed-off-by: Aiden Woodruff <[email protected]>
@bobpaw
bobpaw requested a review from Angelyr May 29, 2025 17:37
@bobpaw bobpaw self-assigned this May 29, 2025

@Angelyr Angelyr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I didn't run into any issues using it. And it was easy to read.

@bobpaw
bobpaw requested a review from cwsmith June 3, 2025 02:49

@cwsmith cwsmith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@cwsmith
cwsmith merged commit fbe52c2 into develop Jun 4, 2025
@cwsmith
cwsmith deleted the apw/capAdapt branch June 4, 2025 01:52
@cwsmith cwsmith added the v4.1.0 changes included in the 4.1.0 release label Aug 26, 2025
@cwsmith cwsmith mentioned this pull request Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capstone v4.1.0 changes included in the 4.1.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants