Skip to content

Commit

Permalink
Sensor OpenMP bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhueper committed Dec 2, 2024
1 parent d22204a commit 0281214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Solver/src/libs/monitors/VolumeIntegrals.f90
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,12 @@ subroutine GetSensorRange(mesh, minSensor, maxSensor)
minSensor = huge(1.0_RP)/10.0_RP
maxSensor = -huge(1.0_RP)/10.0_RP

!$omp parallel do schedule(static) private(ielem)
!! !$omp parallel do schedule(static) private(ielem)
do ielem = 1, mesh % no_of_elements
minSensor = min(minSensor, mesh % elements(ielem) % storage % sensor)
maxSensor = max(maxSensor, mesh % elements(ielem) % storage % sensor)
end do
!$omp end parallel do
!! !$omp end parallel do

#ifdef _HAS_MPI_
call MPI_MinMax(minSensor, maxSensor)
Expand Down

0 comments on commit 0281214

Please sign in to comment.