Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2024
1 parent d91aace commit 04c015a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/Gravity_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ template <typename T> void Gravity<T>::solve_for_phi(int level, MultiFab &phi, c
grad_phi_p[0][i] = grad_phi[i];
}

amrex::Vector<amrex::MultiFab*> res_null;
amrex::Vector<amrex::MultiFab *> res_null;

level_solver_resnorm[level] = solve_phi_with_mlmg(level, level, phi_p, amrex::GetVecOfPtrs(rhs), grad_phi_p, res_null, time);

Expand Down Expand Up @@ -318,7 +318,8 @@ template <typename T> void Gravity<T>::multilevel_solve_for_new_phi(int level, i
actual_multilevel_solve(level, finest_level_in, amrex::GetVecOfVecOfPtrs(grad_phi_curr), is_new);
}

template <typename T> void Gravity<T>::actual_multilevel_solve(int crse_level, int finest_level_in, const amrex::Vector<amrex::MultiFab *> &grad_phi, int is_new)
template <typename T>
void Gravity<T>::actual_multilevel_solve(int crse_level, int finest_level_in, const amrex::Vector<amrex::MultiFab *> &grad_phi, int is_new)
{
BL_PROFILE("Gravity<T>::actual_multilevel_solve()");

Expand Down
3 changes: 2 additions & 1 deletion src/Gravity_level.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ template <typename T> void Gravity<T>::construct_new_gravity(Real time, int leve

template <typename T>
void Gravity<T>::create_comp_minus_level_grad_phi(int level, MultiFab &comp_phi, const amrex::Vector<MultiFab *> &comp_gphi,
std::unique_ptr<MultiFab> &comp_minus_level_phi, amrex::Vector<std::unique_ptr<MultiFab>> &comp_minus_level_grad_phi)
std::unique_ptr<MultiFab> &comp_minus_level_phi,
amrex::Vector<std::unique_ptr<MultiFab>> &comp_minus_level_grad_phi)
{
BL_PROFILE("Gravity<T>::create_comp_minus_level_grad_phi()");

Expand Down
4 changes: 2 additions & 2 deletions src/Gravity_residual_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "Gravity.hpp"

template <typename T>
void Gravity<T>::test_residual(const Box &bx, amrex::Array4<Real> const &rhs, amrex::Array4<Real> const &ecx, amrex::Array4<Real> const &ecy, amrex::Array4<Real> const &ecz,
amrex::GpuArray<Real, AMREX_SPACEDIM> dx)
void Gravity<T>::test_residual(const Box &bx, amrex::Array4<Real> const &rhs, amrex::Array4<Real> const &ecx, amrex::Array4<Real> const &ecy,
amrex::Array4<Real> const &ecz, amrex::GpuArray<Real, AMREX_SPACEDIM> dx)
{
// Test whether using the edge-based gradients
// to compute Div(Grad(Phi)) satisfies Lap(phi) = RHS
Expand Down

0 comments on commit 04c015a

Please sign in to comment.