Skip to content

Commit a38e581

Browse files
committed
Correct syntax error in the absence of OPENMP
1 parent 8b455ff commit a38e581

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Particles/WarpXParticleContainer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,9 @@ WarpXParticleContainer::GetChargeDensity (int lev, bool local)
734734

735735
DepositCharge(pti, wp, rho.get(), 0, 0, np, thread_num, lev, lev);
736736
}
737+
#ifdef _OPENMP
737738
}
739+
#endif
738740

739741
#ifdef WARPX_DIM_RZ
740742
WarpX::GetInstance().ApplyInverseVolumeScalingToChargeDensity(rho.get(), lev);

0 commit comments

Comments
 (0)