Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/development' into WarmBubble
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh Natarajan committed Dec 4, 2023
2 parents 1407387 + c0a1c9f commit dfca2d7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
15 changes: 14 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#23.11
# 23.12
-- AMReX submodule set to 23.12 release hash (9b733ec)

-- Inclusion of Kessler microphysics option (#1324)

-- Fix for particles with redistribute call (#1314)

-- Inclusion of radiation (#1311)

-- Inclusion of refluxing for two-way coupling (#1289)

-- Metgrid initialization with SST and LandMask (#1280)

# 23.11

-- AMReX submodule set to 23.11 release hash (ae7b64b)

Expand Down
16 changes: 13 additions & 3 deletions Source/IO/Plotfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,21 @@ ERF::WritePlotFile (int which, Vector<std::string> plot_var_names)
const Array4<Real>& derdat = mf[lev].array(mfi);
const Array4<Real const>& p0_arr = p_hse.const_array(mfi);
const Array4<Real const>& S_arr = vars_new[lev][Vars::cons].const_array(mfi);
#if defined(ERF_USE_MOISTURE)
const Array4<Real const> & qv_arr = qmoist[0].const_array(mfi);
#endif

ParallelFor(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept {

ParallelFor(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
{
#if defined(ERF_USE_MOISTURE)
Real qv_for_p = qv_arr(i,j,k);
#elif defined(ERF_USE_WARM_NO_PRECIP)
Real qv_for_p = S_arr(i,j,k,RhoQv_comp) / S_arr(i,j,k,Rho_comp);
#else
Real qv_for_p = 0.;
#endif
const Real rhotheta = S_arr(i,j,k,RhoTheta_comp);
derdat(i, j, k, mf_comp) = getPgivenRTh(rhotheta) - p0_arr(i,j,k);
derdat(i, j, k, mf_comp) = getPgivenRTh(rhotheta,qv_for_p) - p0_arr(i,j,k);
});
}
mf_comp += 1;
Expand Down
2 changes: 1 addition & 1 deletion Submodules/AMReX
Submodule AMReX updated 209 files
2 changes: 1 addition & 1 deletion Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

set(FCOMPARE_EXE ${CMAKE_BINARY_DIR}/Submodules/AMReX/Tools/Plotfile/fcompare CACHE INTERNAL "Path to fcompare executable for regression tests")
set(FCOMPARE_EXE ${CMAKE_BINARY_DIR}/Submodules/AMReX/Tools/Plotfile/amrex_fcompare CACHE INTERNAL "Path to fcompare executable for regression tests")
include(${CMAKE_CURRENT_SOURCE_DIR}/CTestList.cmake)

0 comments on commit dfca2d7

Please sign in to comment.