From 3746c12b5302eb35f359b961453a8dba3d0b3ad4 Mon Sep 17 00:00:00 2001 From: Michael Tupek Date: Tue, 7 Jan 2025 11:35:03 -0800 Subject: [PATCH 1/4] Remove deprecation warning. Its warnings to errors, so this is essentially diabling the capability. Unfortunately, we do now have a replacement for it yet. --- src/serac/physics/solid_mechanics.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/serac/physics/solid_mechanics.hpp b/src/serac/physics/solid_mechanics.hpp index 564e79009..4655f5104 100644 --- a/src/serac/physics/solid_mechanics.hpp +++ b/src/serac/physics/solid_mechanics.hpp @@ -507,9 +507,6 @@ class SolidMechanics, std::integer_se * * @note This method must be called prior to completeSetup() */ - //clang-format off - [[deprecated("Please use the boundary condition methods that take Domain objects. This method will be removed.")]] - //clang-format on void setDisplacementBCs(std::function is_node_constrained, std::function disp, int component) From 16d67870c8a943c043512da5cdef9be4f3c151bf Mon Sep 17 00:00:00 2001 From: Agent Style Date: Tue, 7 Jan 2025 11:53:15 -0800 Subject: [PATCH 2/4] Apply style updates --- src/serac/physics/solid_mechanics.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/serac/physics/solid_mechanics.hpp b/src/serac/physics/solid_mechanics.hpp index 4655f5104..adab7a557 100644 --- a/src/serac/physics/solid_mechanics.hpp +++ b/src/serac/physics/solid_mechanics.hpp @@ -507,9 +507,8 @@ class SolidMechanics, std::integer_se * * @note This method must be called prior to completeSetup() */ - void - setDisplacementBCs(std::function is_node_constrained, - std::function disp, int component) + void setDisplacementBCs(std::function is_node_constrained, + std::function disp, int component) { // Get the nodal positions for the displacement vector in grid function form mfem::ParGridFunction coordinates( From 07bc9d2fa0248ad979814efbbb611c72ae17e433 Mon Sep 17 00:00:00 2001 From: Michael Tupek Date: Tue, 7 Jan 2025 12:36:52 -0800 Subject: [PATCH 3/4] Try to fix style. --- src/serac/physics/solid_mechanics.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/serac/physics/solid_mechanics.hpp b/src/serac/physics/solid_mechanics.hpp index adab7a557..f1568854f 100644 --- a/src/serac/physics/solid_mechanics.hpp +++ b/src/serac/physics/solid_mechanics.hpp @@ -537,6 +537,7 @@ class SolidMechanics, std::integer_se bcs_.addEssential(ldof_list, component_disp_bdr_coef_, displacement_.space(), component); } + /// @overload const FiniteElementState& state(const std::string& state_name) const override { From d7554cf3c1e69b0b9c36b06344935098acdd51a3 Mon Sep 17 00:00:00 2001 From: Michael Tupek Date: Tue, 7 Jan 2025 13:00:34 -0800 Subject: [PATCH 4/4] Style. --- src/serac/physics/solid_mechanics.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/serac/physics/solid_mechanics.hpp b/src/serac/physics/solid_mechanics.hpp index f1568854f..adab7a557 100644 --- a/src/serac/physics/solid_mechanics.hpp +++ b/src/serac/physics/solid_mechanics.hpp @@ -537,7 +537,6 @@ class SolidMechanics, std::integer_se bcs_.addEssential(ldof_list, component_disp_bdr_coef_, displacement_.space(), component); } - /// @overload const FiniteElementState& state(const std::string& state_name) const override {