Skip to content

Commit

Permalink
Remove two if conditions that seemed redundant in offline driver loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
micaeljtoliveira committed Jan 7, 2025
1 parent abadde1 commit 0632c7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/offline/cable_mpimaster.F90
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,8 @@ SUBROUTINE mpidrv_master (comm, trunk_sumbal, dels, koffset, kend, PLUME, CRU)
TRIM(cable_user%RunIden)//'_cable_out.nc'
ENDIF
ENDIF
IF (YYYY.EQ.CABLE_USER%YEARSTART) THEN
CALL nullify_write() ! nullify pointers
CALL open_output_file( dels, soil, veg, bgc, rough, met)
ENDIF
CALL nullify_write() ! nullify pointers
CALL open_output_file( dels, soil, veg, bgc, rough, met)
ENDIF

ssnow%otss_0 = ssnow%tgg(:,1)
Expand Down
6 changes: 2 additions & 4 deletions src/offline/cable_serial.F90
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,8 @@ SUBROUTINE serialdrv(trunk_sumbal, NRRRR, dels, koffset, kend, GSWP_MID, PLUME,
TRIM(cable_user%RunIden)//'_cable_out.nc'
ENDIF
ENDIF
IF (RRRR.EQ.1) THEN
CALL nullify_write() ! nullify pointers
CALL open_output_file( dels, soil, veg, bgc, rough, met)
ENDIF
CALL nullify_write() ! nullify pointers
CALL open_output_file( dels, soil, veg, bgc, rough, met)
ENDIF

ssnow%otss_0 = ssnow%tgg(:,1)
Expand Down

0 comments on commit 0632c7d

Please sign in to comment.