Skip to content

Task/ebchin/build warnings changes - #236

Merged
white238 merged 23 commits into
task/white238/build_warningsfrom
task/ebchin/build_warnings_changes
Aug 13, 2026
Merged

Task/ebchin/build warnings changes#236
white238 merged 23 commits into
task/white238/build_warningsfrom
task/ebchin/build_warnings_changes

Conversation

@ebchin

@ebchin ebchin commented Aug 10, 2026

Copy link
Copy Markdown
Member
  • Turn on warnings as errors so we (hopefully) don't have to do this again
  • Try to fix the MPI and OpenMP logic in the SetupMFEM.cmake file so we don't have to list them as dependencies in executables that depend on MFEM
  • Use axom::numeric_limits::max() instead of std::numeric_limits::max() for device support
  • Make spatialDimension() an int

@ebchin
ebchin requested a review from white238 August 10, 2026 20:26
@ebchin ebchin self-assigned this Aug 10, 2026
Comment thread cmake/Options.cmake Outdated

Copilot AI 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.

Pull request overview

Enables stricter warning handling and resolves resulting compiler warnings while improving MFEM dependency propagation.

Changes:

  • Enables warnings-as-errors and initializes previously uninitialized values.
  • Propagates MFEM’s MPI/OpenMP dependencies.
  • Standardizes spatial-dimension and device-compatible numeric-limit usage.

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
CMakeLists.txt Enables strict compiler warnings.
cmake/TribolCompilerFlags.cmake Removes trailing blank line.
cmake/thirdparty/SetupMFEM.cmake Propagates MPI/OpenMP dependencies.
src/tests/CMakeLists.txt Removes redundant MFEM dependencies.
src/tests/tribol_comp_geom_3d.cpp Preserves cleanup before returning.
src/tribol/geom/CompGeom.hpp Resolves initialization and formatting warnings.
src/tribol/geom/GeomUtilities.hpp Uses device-compatible numeric limits.
src/tribol/integ/FE.hpp Initializes basis values and validates bounds.
src/tribol/mesh/CouplingScheme.hpp Simplifies dimension handling and initializes arrays.
src/tribol/mesh/MeshData.hpp Returns spatial dimension as int.
src/tribol/mesh/MfemData.hpp Aligns member documentation formatting.
src/tribol/physics/AlignedMortar.cpp Initializes values and handles missing node matches.
src/tribol/physics/ContactFormulationFactory.cpp Scopes feature-dependent variables correctly.
src/tribol/physics/Mortar.cpp Initializes basis values.
src/tribol/search/InterfacePairFinder.cpp Removes unused capture and makes helper static.
src/tribol/utils/TestUtils.cpp Initializes the VTK element identifier.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CMakeLists.txt Outdated
Comment thread cmake/thirdparty/SetupMFEM.cmake Outdated
@ebchin
ebchin force-pushed the task/ebchin/build_warnings_changes branch 2 times, most recently from 2290518 to 718c9c2 Compare August 12, 2026 05:03
@ebchin
ebchin force-pushed the task/ebchin/build_warnings_changes branch from a25ca9b to 1072f9c Compare August 12, 2026 16:59
}
}
#else
TRIBOL_UNUSED_VAR( m1 );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

any reason you dont use [[maybe_unused]]?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This could be a follow up PR across tribol

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No good reason. I agree -- worth cleaning up in a follow-on PR.

@white238
white238 merged commit 8a61be2 into develop Aug 13, 2026
14 checks passed
@white238
white238 deleted the task/ebchin/build_warnings_changes branch August 13, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants