Skip to content

Commit

Permalink
remove extra whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren committed Nov 21, 2024
1 parent e20d0d3 commit 83e70c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
14 changes: 7 additions & 7 deletions Source/TimeIntegration/ERF_TI_no_substep_fun.H
Original file line number Diff line number Diff line change
Expand Up @@ -106,42 +106,42 @@
});

} else { // Fixed or no terrain
#ifdef ERF_USE_EB
#ifdef ERF_USE_EB
const Array4<const Real>& dJ_old = detJ_cc[level]->const_array(mfi);
#endif
ParallelFor(bx, ncomp_fast[IntVars::cons],
[=] AMREX_GPU_DEVICE (int i, int j, int k, int nn) {
const int n = scomp_fast[IntVars::cons] + nn;
#ifdef ERF_USE_EB
#ifdef ERF_USE_EB
if (dJ_old(i,j,k) > 0.0) {
#endif
ssum[IntVars::cons](i,j,k,n) = sold[IntVars::cons](i,j,k,n) + slow_dt *
( fslow[IntVars::cons](i,j,k,n) );
#ifdef ERF_USE_EB
#ifdef ERF_USE_EB
}
#endif
});

// Commenting out the update is a total HACK while developing the EB capability
ParallelFor(tbx, tby, tbz,
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
#ifdef ERF_USE_EB
#ifdef ERF_USE_EB
ssum[IntVars::xmom](i,j,k) = sold[IntVars::xmom](i,j,k);
#else
ssum[IntVars::xmom](i,j,k) = sold[IntVars::xmom](i,j,k)
+ slow_dt * fslow[IntVars::xmom](i,j,k);
#endif
},
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
#ifdef ERF_USE_EB
#ifdef ERF_USE_EB
ssum[IntVars::ymom](i,j,k) = sold[IntVars::ymom](i,j,k);
#else
ssum[IntVars::ymom](i,j,k) = sold[IntVars::ymom](i,j,k)
+ slow_dt * fslow[IntVars::ymom](i,j,k);
#endif
},
[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
#ifdef ERF_USE_EB
#ifdef ERF_USE_EB
ssum[IntVars::zmom](i,j,k) = sold[IntVars::zmom](i,j,k);
#else
ssum[IntVars::zmom](i,j,k) = sold[IntVars::zmom](i,j,k)
Expand Down
2 changes: 1 addition & 1 deletion Source/Utils/ERF_solve_with_EB_mlmg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void ERF::solve_with_EB_mlmg (int lev, Vector<MultiFab>& rhs, Vector<MultiFab>&
mleb.setLevelBC(0, nullptr);

//
// This sets A = 0, B = 1 so that
// This sets A = 0, B = 1 so that
// the operator A alpha - b del dot beta grad to b
// becomes - del dot beta grad
//
Expand Down
7 changes: 3 additions & 4 deletions Source/Utils/ERF_solve_with_gmres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "ERF_Utils.H"

#include <AMReX_MLMG.H>
//#include <AMReX_MLTerrainPoisson.H>
#include <AMReX_GMRES.H>
#include <AMReX_GMRES_MLMG.H>

Expand All @@ -11,12 +10,12 @@ using namespace amrex;
/**
* Solve the Poisson equation using GMRES
*/
void ERF::solve_with_gmres (int /*lev*/, Vector<MultiFab>& /*rhs*/, Vector<MultiFab>& /*phi*/, Vector<Array<MultiFab,AMREX_SPACEDIM>>& /*fluxes*/)
//void ERF::solve_with_gmres (int lev, Vector<MultiFab>& rhs, Vector<MultiFab>& phi, Vector<Array<MultiFab,AMREX_SPACEDIM>>& fluxes)
void ERF::solve_with_gmres (int /*lev*/, Vector<MultiFab>& /*rhs*/, Vector<MultiFab>& /*phi*/,
Vector<Array<MultiFab,AMREX_SPACEDIM>>& /*fluxes*/)
{
#if 0
BL_PROFILE("ERF::solve_with_gmres()");

#if 0
auto const dom_lo = lbound(geom[lev].Domain());
auto const dom_hi = ubound(geom[lev].Domain());

Expand Down

0 comments on commit 83e70c3

Please sign in to comment.