Skip to content

Commit fbd6803

Browse files
authored
omp pragma should be right before the mfiter. (#2692)
1 parent b3a5a8b commit fbd6803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/IO/ERF_Plotfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2270,10 +2270,10 @@ ERF::Write2DPlotFile (int which, PlotFileType plotfile_type, Vector<std::string>
22702270
} // laten_flux
22712271

22722272
if (containerHasElement(plot_var_names, "surf_pres")) {
2273+
bool moist = (solverChoice.moisture_type != MoistureType::None);
22732274
#ifdef _OPENMP
22742275
#pragma omp parallel if (amrex::Gpu::notInLaunchRegion())
22752276
#endif
2276-
bool moist = (solverChoice.moisture_type != MoistureType::None);
22772277
for ( MFIter mfi(mf[lev],TilingIfNotGPU()); mfi.isValid(); ++mfi)
22782278
{
22792279
const Box& bx = mfi.tilebox();

0 commit comments

Comments
 (0)