Skip to content

Commit

Permalink
(#359) - Set logn for workers
Browse files Browse the repository at this point in the history
  • Loading branch information
C. Carouge committed Aug 5, 2024
1 parent 00c70ec commit 93b16a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/offline/cable_mpiworker.F90
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ SUBROUTINE mpidrv_worker (comm)
WRITE(cRank,FMT='(I4.4)')rank
wlogn = 1000+rank
OPEN(wlogn,FILE="cable_log_"//cRank,STATUS="REPLACE")
logn = wlogn
write(wlogn,*) 'ccc logn, wlogn values: ', logn, wlogn
ELSE
wlogn = 1000
OPEN(wlogn, FILE="/dev/null")
Expand Down Expand Up @@ -465,7 +467,7 @@ SUBROUTINE mpidrv_worker (comm)
CALL flush(wlogn)

IF (check%ranges /= NO_CHECK) THEN
WRITE (*, *) "Checking parameter ranges"
WRITE (wlogn, *) "Checking parameter ranges"
CALL constant_check_range(soil, veg, 0, met)
END IF

Expand Down

0 comments on commit 93b16a1

Please sign in to comment.