You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For MeshAdapt we would like to know how many mesh modification operations occur. The feature should allow for breakdowns by major step (refine, coarsen, snap, fix) or a summary. For efficiency, I also think it should be compiled conditionally (CMake, pre-processor macro, function to query support).
Add a field to ma::Input. If it's requested without support, we print a warning and continue with MeshAdapt.
Add counters to all MeshAdapt routines that use mesh modification operators.
Since we have to track this information and pass it around, it might be good to make an object (say ma::Stats or ma::MeshModStats) that is public and can be returned to the user by ma::adapt. It could be added as a member of ma::Adapt class that's already passed around.
Return an object or print statistics.
An object is better if people need to use it, but it might be annoying if people just want to print the data every time and that's it. Might be best to create an object for the duration of MeshAdapt, print the stats, and destroy it. Gets the job done now and if someone wants the full object later on a patch is easy.
May not be the perfect strategy, but I often use this: https://github.com/UO-OACISS/perfstubs and wrap in a project specific macro. The advantage is that it can provide the instrumentation data to tau or other profiling tools.
Activity
jacobmerson commentedon Apr 30, 2025
May not be the perfect strategy, but I often use this: https://github.com/UO-OACISS/perfstubs and wrap in a project specific macro. The advantage is that it can provide the instrumentation data to tau or other profiling tools.
cwsmith commentedon Aug 26, 2025
@bobpaw @Angelyr Is support for this part of #514?
Angelyr commentedon Aug 27, 2025
@cwsmith No this is not part of #514