Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #150 from jrood-nrel/jrood/cxx_standard
Browse files Browse the repository at this point in the history
Change ifs to ifdefs to avoids standards errors
  • Loading branch information
drummerdoc authored Feb 2, 2021
2 parents 77f894f + 0784c33 commit b24c68e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/ArrayViewEXT.H
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <AMReX_MultiFab.H>

#if (BL_USE_FLOAT)
#ifdef (BL_USE_FLOAT)
# define FP_CLASS fp_classf
#else
# define FP_CLASS fp_class
Expand Down
8 changes: 4 additions & 4 deletions Source/PeleLM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3728,7 +3728,7 @@ PeleLM::compute_enthalpy_fluxes (MultiFab* const* flux,
FArrayBox fab_tmp;
for (MFIter mfi(TT,TilingIfNotGPU()); mfi.isValid(); ++mfi)
{
#if AMREX_USE_EB
#ifdef AMREX_USE_EB
const Box &bx = mfi.tilebox();
// this is to check efficiently if this tile contains any eb stuff
const EBFArrayBox& in_fab = static_cast<EBFArrayBox const&>(TT[mfi]);
Expand Down Expand Up @@ -3770,7 +3770,7 @@ PeleLM::compute_enthalpy_fluxes (MultiFab* const* flux,
}
});
}
#if AMREX_USE_EB
#ifdef AMREX_USE_EB
}
#endif
}
Expand Down Expand Up @@ -5378,7 +5378,7 @@ PeleLM::getFuncCountDM (const BoxArray& bxba, int ngrow)

fctmpnew.clear();

#if AMREX_USE_MPI
#ifdef AMREX_USE_MPI
const int IOProc = ParallelDescriptor::IOProcessorNumber();

Vector<int> nmtags(ParallelDescriptor::NProcs(),0);
Expand Down Expand Up @@ -8952,7 +8952,7 @@ PeleLM::initActiveControl()
bcnormal(x, s_ext_d, ctrl_flameDir_l, 1, time_l, geomdata, *lprobparm, *lacparm, lpmfdata);
});
amrex::Real s_ext[DEF_NUM_STATE];
#if AMREX_USE_GPU
#ifdef AMREX_USE_GPU
amrex::Gpu::dtoh_memcpy(s_ext,s_ext_d,sizeof(amrex::Real)*DEF_NUM_STATE);
#else
std::memcpy(s_ext,s_ext_d,sizeof(amrex::Real)*DEF_NUM_STATE);
Expand Down

0 comments on commit b24c68e

Please sign in to comment.