Skip to content

Commit 8a558aa

Browse files
Fix nproc being initialised to 1
Previously nproc was initialised to 0. This meant that get_mon_out() wouldn't work as expected when not using MPI due to a bad assumption in an if statement.
1 parent 4cd9b52 commit 8a558aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fiat/drhook/internal/dr_hook_procinfo.F90

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SUBROUTINE DR_HOOK_PROCINFO(KMYPROC, KNPROC)
1717
INTEGER(KIND=JPIM) :: IERROR
1818

1919
KMYPROC=-1
20-
KNPROC=0
20+
KNPROC=1
2121
CALL MPI_INITIALIZED(LMPI_INITIALIZED,IERROR)
2222
IF( LMPI_INITIALIZED ) THEN
2323
CALL MPI_COMM_SIZE(MPI_COMM_WORLD,KNPROC,IERROR)

0 commit comments

Comments
 (0)