Skip to content

Commit 0f9a060

Browse files
committed
Edit Joey Smith's PR: exchange tau_oi(2,npa)
1 parent 670845d commit 0f9a060

4 files changed

Lines changed: 27 additions & 18 deletions

File tree

cmake/SCHISM.local.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ set( USE_WWM OFF CACHE BOOLEAN "Use wind-wave module")
4545
set( USE_WW3 OFF CACHE BOOLEAN "Use Wave Watch III")
4646
set( USE_ICE OFF CACHE BOOLEAN "Use 1-class ICE module")
4747
set( USE_MICE OFF CACHE BOOLEAN "Use multi-class ICE module")
48+
set( USE_CICE OFF CACHE BOOLEAN "Coupled to CICE via ESMF/UFS")
4849

4950
#Tracer models
5051
set( USE_GEN OFF CACHE BOOLEAN "Use generic tracer module")

mk/include_modules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# EXEC := $(EXEC)_ATMOS
2323

2424
# Build a library that can be used from BMI, with sources and some b.c. provided by BMI
25+
## Try to use cmake for this
2526
# USE_BMI = yes
2627
# EXEC := $(EXEC)_BMI
2728

src/Hydro/schism_init.F90

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,29 +1695,29 @@ subroutine schism_init(iorder,indir,iths,ntime)
16951695
#endif
16961696

16971697
#ifdef USE_FIB
1698-
allocate(kk_fib(nea,2),sink_fib(nea),fraction_fib(nea))
1699-
allocate(sink0(npa),fraction0(npa),kk10(npa),kk20(npa))
1698+
allocate(kk_fib(nea,2),sink_fib(nea),fraction_fib(nea))
1699+
allocate(sink0(npa),fraction0(npa),kk10(npa),kk20(npa))
17001700
#endif
17011701

17021702
#ifdef USE_CICE
1703-
allocate(aice(npa),tau_oi(2,npa),fresh_wa_flux(npa),salinity_flux(npa),net_heat_flux(npa), &
1703+
allocate(aice(npa),tau_oi(2,npa),fresh_wa_flux(npa),salinity_flux(npa),net_heat_flux(npa), &
17041704
srad_o(npa),srad_th_ice(npa),srad_ocn(npa),sflux_ocn(npa),fluxprc_ocn(npa),fluxevp_ocn(npa),stat=istat)
1705-
if(istat/=0) call parallel_abort('INIT: ice frac allocation failure')
1706-
aice(:) = real(0)
1707-
tau_oi(:,:) = real(0)
1708-
fresh_wa_flux(:) = real(0)
1709-
salinity_flux(:) = real(0)
1710-
net_heat_flux(:) = real(0)
1711-
srad_o(:) = real(0)
1712-
srad_th_ice(:) = real(0)
1705+
if(istat/=0) call parallel_abort('INIT: ice frac allocation failure')
1706+
aice(:) = real(0)
1707+
tau_oi(:,:) = real(0)
1708+
fresh_wa_flux(:) = real(0)
1709+
salinity_flux(:) = real(0)
1710+
net_heat_flux(:) = real(0)
1711+
srad_o(:) = real(0)
1712+
srad_th_ice(:) = real(0)
17131713

1714-
fluxprc_ocn(:) = real(0)
1715-
fluxevp_ocn(:) = real(0)
1716-
sflux_ocn(:) = real(0)
1717-
srad_ocn(:) = real(0)
1714+
fluxprc_ocn(:) = real(0)
1715+
fluxevp_ocn(:) = real(0)
1716+
sflux_ocn(:) = real(0)
1717+
srad_ocn(:) = real(0)
17181718
#endif
1719-
allocate(sflux_o(npa),stat=istat)
1720-
sflux_o(:) = real(0)
1719+
! allocate(sflux_o(npa),stat=istat)
1720+
! sflux_o(:) = real(0)
17211721

17221722
#ifdef USE_MICE
17231723
allocate(tau_oi(2,npa),fresh_wa_flux(npa),net_heat_flux(npa), &

src/Hydro/schism_step.F90

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,13 +1032,20 @@ subroutine schism_step(it)
10321032

10331033
call exchange_p2d(aice)
10341034
call exchange_p2d(CdnIO)
1035-
call exchange_p2d(tau_oi)
1035+
!call exchange_p2d(tau_oi)
10361036
call exchange_p2d(uvice)
10371037
call exchange_p2d(vvice)
10381038
call exchange_p2d(fresh_wa_flux)
10391039
call exchange_p2d(srad_th_ice)
10401040
call exchange_p2d(net_heat_flux)
10411041

1042+
swild(1:npa)=tau_oi(1,:)
1043+
call exchange_p2d(swild)
1044+
tau_oi(1,:)=swild(1:npa)
1045+
swild(1:npa)=tau_oi(2,:)
1046+
call exchange_p2d(swild)
1047+
tau_oi(2,:)=swild(1:npa)
1048+
10421049
do i = 1,npa
10431050
if (aice(i) > real(1e-8)) then
10441051
!>-------------------------------------------------

0 commit comments

Comments
 (0)