Skip to content

Commit

Permalink
fix compilation error (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Jul 9, 2024
1 parent f13af91 commit 2e1e040
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/IO/ERF_WriteScalarProfiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ ERF::cloud_fraction (Real time)
AMREX_ASSERT(numpts < Long(std::numeric_limits<int>::max));

#if 1
if (amrex::UseGpuAwareMpi()) {
if (ParallelDescriptor::UseGpuAwareMpi()) {
ParallelDescriptor::ReduceIntMax(p,static_cast<int>(numpts));
} else {
Gpu::PinnedVector<int> hv(numpts);
Gpu::copyAsync(Gpu::deviceToHost, p, p+numpts, hv.data());
Gpu::streamSynchronize();
ParallelDescriptor::ReduceIntMax(hv.data(),static_cast<int>(numpts));
Gpu::copyAsync(Gpu::hostToDevice, hv,data(), hv.data()+numpts, p);
Gpu::copyAsync(Gpu::hostToDevice, hv.data(), hv.data()+numpts, p);
}

// Sum over component 0
Expand Down
2 changes: 1 addition & 1 deletion Source/Initialization/InputSoundingData.H
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public:
// = rho_d(1 + q_v) R_d T_v

// integrate from surface to domain top
amrex::Real qv, dz;
amrex::Real dz;
#if 1 // Printing
// In this absence of moisture, this moist profile will match the
// following dry profile
Expand Down

0 comments on commit 2e1e040

Please sign in to comment.