From 04c015a45fa0f709b6338cecc66a5b3c549c9938 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 14 Jan 2024 21:13:21 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/Gravity_impl.hpp | 5 +++-- src/Gravity_level.hpp | 3 ++- src/Gravity_residual_impl.hpp | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Gravity_impl.hpp b/src/Gravity_impl.hpp index 8ca63496a..08c9d7700 100644 --- a/src/Gravity_impl.hpp +++ b/src/Gravity_impl.hpp @@ -256,7 +256,7 @@ template void Gravity::solve_for_phi(int level, MultiFab &phi, c grad_phi_p[0][i] = grad_phi[i]; } - amrex::Vector res_null; + amrex::Vector res_null; level_solver_resnorm[level] = solve_phi_with_mlmg(level, level, phi_p, amrex::GetVecOfPtrs(rhs), grad_phi_p, res_null, time); @@ -318,7 +318,8 @@ template void Gravity::multilevel_solve_for_new_phi(int level, i actual_multilevel_solve(level, finest_level_in, amrex::GetVecOfVecOfPtrs(grad_phi_curr), is_new); } -template void Gravity::actual_multilevel_solve(int crse_level, int finest_level_in, const amrex::Vector &grad_phi, int is_new) +template +void Gravity::actual_multilevel_solve(int crse_level, int finest_level_in, const amrex::Vector &grad_phi, int is_new) { BL_PROFILE("Gravity::actual_multilevel_solve()"); diff --git a/src/Gravity_level.hpp b/src/Gravity_level.hpp index f3124931d..6095f88c2 100644 --- a/src/Gravity_level.hpp +++ b/src/Gravity_level.hpp @@ -178,7 +178,8 @@ template void Gravity::construct_new_gravity(Real time, int leve template void Gravity::create_comp_minus_level_grad_phi(int level, MultiFab &comp_phi, const amrex::Vector &comp_gphi, - std::unique_ptr &comp_minus_level_phi, amrex::Vector> &comp_minus_level_grad_phi) + std::unique_ptr &comp_minus_level_phi, + amrex::Vector> &comp_minus_level_grad_phi) { BL_PROFILE("Gravity::create_comp_minus_level_grad_phi()"); diff --git a/src/Gravity_residual_impl.hpp b/src/Gravity_residual_impl.hpp index 9a403fb29..fa6067be0 100644 --- a/src/Gravity_residual_impl.hpp +++ b/src/Gravity_residual_impl.hpp @@ -12,8 +12,8 @@ #include "Gravity.hpp" template -void Gravity::test_residual(const Box &bx, amrex::Array4 const &rhs, amrex::Array4 const &ecx, amrex::Array4 const &ecy, amrex::Array4 const &ecz, - amrex::GpuArray dx) +void Gravity::test_residual(const Box &bx, amrex::Array4 const &rhs, amrex::Array4 const &ecx, amrex::Array4 const &ecy, + amrex::Array4 const &ecz, amrex::GpuArray dx) { // Test whether using the edge-based gradients // to compute Div(Grad(Phi)) satisfies Lap(phi) = RHS