Skip to content

Commit

Permalink
Merge pull request #46 from JensBDebernard/bugfix_coupling_initializa…
Browse files Browse the repository at this point in the history
…tion

Bugfix coupling initialization
  • Loading branch information
JensBDebernard authored Apr 14, 2023
2 parents c8bbcfb + 42c2262 commit 1e0491a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module ice_accum_shared
implicit none

logical (kind=log_kind), public :: &
bool_accum_write = .true., & ! if .true., write age tracer restartfile
bool_accum_read = .false. ! same but for reading
bool_accum_write = .true., & ! if .true., write age tracer restartfile
bool_accum_read = .true. ! same but for reading

real (kind=dbl_kind), public :: accum_time

Expand Down
4 changes: 2 additions & 2 deletions apps/common/modified_src/cice5.1.2/source/ice_itd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module ice_itd
use ice_constants
use ice_communicate, only: my_task, master_task
use ice_domain_size, only: ncat, max_aero, nilyr, nslyr, n_aero, nblyr
use ice_fileunits, only: nu_diag
use ice_fileunits, only: nu_diag, ice_stderr

implicit none
save
Expand Down Expand Up @@ -2417,7 +2417,7 @@ subroutine zap_snow_temperature(nx_block, ny_block, &

enddo ! n

if (nzaps > 0) write(nu_diag,*) &
if (nzaps > 0) write(ice_stderr,*) &
'zap_snow_temperature :: ',nzaps,' points zaped at proc ',my_task

end subroutine zap_snow_temperature
Expand Down
11 changes: 6 additions & 5 deletions apps/common/modified_src/roms-trunk820/main3d.F
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,12 @@ SUBROUTINE main3d (RunInterval)
!-----------------------------------------------------------------------
!
DO ng=1,Ngrids
IF ((iic(ng).ne.ntstart(ng)).and. &
& MOD(iic(ng)-1,CoupleSteps(Icice,ng)).eq.0) THEN
DO tile=first_tile(ng),last_tile(ng),+1
CALL ocn2cice_coupling (ng, TILE,CoupleSteps(Icice,ng))
END DO
!jd IF ((iic(ng).ne.ntstart(ng)).and. &
if ( MOD(iic(ng)-1,CoupleSteps(Icice,ng)).eq.0 .and. &
& iic(ng) .lt. (ntend(ng)+1) ) THEN
DO tile=first_tile(ng),last_tile(ng),+1
CALL ocn2cice_coupling (ng, TILE,CoupleSteps(Icice,ng))
END DO
!$OMP BARRIER
END IF
END DO
Expand Down

0 comments on commit 1e0491a

Please sign in to comment.