From 8eb1e55677f337131a156f1547840757ab8b11aa Mon Sep 17 00:00:00 2001 From: whorne Date: Tue, 6 Aug 2024 14:03:56 -0600 Subject: [PATCH] Formatting --- include/matrix_free/PolynomialOrders.h | 32 +++++++++++++------------- src/LowMachEquationSystem.C | 4 ++-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/include/matrix_free/PolynomialOrders.h b/include/matrix_free/PolynomialOrders.h index 9abc85e51..140f8a6e8 100644 --- a/include/matrix_free/PolynomialOrders.h +++ b/include/matrix_free/PolynomialOrders.h @@ -56,27 +56,27 @@ enum { #define P_INVOKEABLE(func) \ template \ auto func(Args&&... args) \ - -> decltype(IMPLNAME(func) < p > ::invoke(std::forward(args)...)) \ + ->decltype(IMPLNAME(func) < p > ::invoke(std::forward(args)...)) \ { \ return IMPLNAME(func)

::invoke(std::forward(args)...); \ } // can't return a value dependent on template parameter -#define SWITCH_INVOKEABLE(func) \ - template \ - auto func(int p, Args&&... args) \ - -> decltype(IMPLNAME(func) < inst::P1 > ::invoke(std::forward(args)...)) \ - { \ - switch (p) { \ - case inst::P2: \ - return IMPLNAME(func)::invoke(std::forward(args)...); \ - case inst::P3: \ - return IMPLNAME(func)::invoke(std::forward(args)...); \ - case inst::P4: \ - return IMPLNAME(func)::invoke(std::forward(args)...); \ - default: \ - return IMPLNAME(func)::invoke(std::forward(args)...); \ - } \ +#define SWITCH_INVOKEABLE(func) \ + template \ + auto func(int p, Args&&... args) \ + ->decltype(IMPLNAME(func) < inst::P1 > ::invoke(std::forward(args)...)) \ + { \ + switch (p) { \ + case inst::P2: \ + return IMPLNAME(func)::invoke(std::forward(args)...); \ + case inst::P3: \ + return IMPLNAME(func)::invoke(std::forward(args)...); \ + case inst::P4: \ + return IMPLNAME(func)::invoke(std::forward(args)...); \ + default: \ + return IMPLNAME(func)::invoke(std::forward(args)...); \ + } \ } } // namespace matrix_free diff --git a/src/LowMachEquationSystem.C b/src/LowMachEquationSystem.C index 92f90328f..4096224a0 100644 --- a/src/LowMachEquationSystem.C +++ b/src/LowMachEquationSystem.C @@ -1389,8 +1389,8 @@ MomentumEquationSystem::register_interior_algorithm(stk::mesh::Part* part) // Check if the user has requested CMM or LMM algorithms; if so, do not // include Nodal Mass algorithms - std::vector checkAlgNames = {"momentum_time_derivative", - "lumped_momentum_time_derivative"}; + std::vector checkAlgNames = { + "momentum_time_derivative", "lumped_momentum_time_derivative"}; bool elementMassAlg = supp_alg_is_requested(checkAlgNames); // solver; time contribution (lumped mass matrix) if (!elementMassAlg || nodal_src_is_requested()) {