Skip to content

Commit

Permalink
added check to ensure that precalc_forc is only used for the MOSAiC f…
Browse files Browse the repository at this point in the history
…orcing
  • Loading branch information
davidclemenssewall committed Sep 30, 2024
1 parent 0b4b404 commit b47d4c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configuration/driver/icedrv_forcing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ subroutine init_forcing

! Initialize ntime and allocate data arrays
if (precalc_forc) then
if (trim(atm_data_type(1:6)) /= 'MOSAiC') &
call icedrv_system_abort(string=subname//&
'precalc_forc should only be used with MOSAiC atmosphere', &
file=__FILE__,line=__LINE__)
if (.not. ((trim(ocn_data_type(1:6)) == 'MOSAiC') &
.or. (trim(ocn_data_type(1:7)) == 'default'))) &
call icedrv_system_abort(string=subname//&
'precalc_forc should only be used with MOSAiC ocean or'//&
' default ocean', file=__FILE__,line=__LINE__)
ntime = npt
else
ntime = 8760
Expand Down

0 comments on commit b47d4c8

Please sign in to comment.