Skip to content

Commit 2532377

Browse files
authored
Deprecate zsalinity (CICE-Consortium#1017)
Remove zsalinity code (was deprecated via abort previously) Remove zsalinity variables restart_zsal, solve_zsal, fzsal, grid_oS, l_skS, Update Icepack interface calls Remove fzsal from coupling_prep subroutine and interface Support zsalinity namelist for backwards compatibility. Has no effect except if solve_zsal or restart_zsal = true then the code aborts. Update documentation Update Icepack to #5feadd007a58f
1 parent 5703df5 commit 2532377

File tree

11 files changed

+59
-93
lines changed

11 files changed

+59
-93
lines changed

cicecore/cicedyn/analysis/ice_history.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ subroutine accum_hist (dt)
23222322
timedbl = (timesecs-dt)/(secday)
23232323
time_beg(ns) = real(timedbl,kind=real_kind)
23242324
endif
2325-
enddo
2325+
enddo ! ns
23262326

23272327
!---------------------------------------------------------------
23282328
! increment field

cicecore/drivers/direct/hadgem3/CICE_InitMod.F90

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ subroutine init_restart
242242
restart_fsd, read_restart_fsd, &
243243
restart_aero, read_restart_aero, &
244244
restart_hbrine, read_restart_hbrine, &
245-
restart_zsal, restart_bgc
245+
restart_bgc
246246
use ice_restart_driver, only: restartfile, restartfile_v4
247247
use ice_restart_shared, only: runtype, restart
248248
use ice_state ! almost everything
@@ -253,7 +253,7 @@ subroutine init_restart
253253
logical(kind=log_kind) :: &
254254
tr_iage, tr_FY, tr_lvl, tr_pond_lvl, &
255255
tr_pond_topo, tr_fsd, tr_aero, tr_brine, &
256-
skl_bgc, z_tracers, solve_zsal
256+
skl_bgc, z_tracers
257257
integer(kind=int_kind) :: &
258258
ntrcr
259259
integer(kind=int_kind) :: &
@@ -268,7 +268,7 @@ subroutine init_restart
268268
file=__FILE__, line=__LINE__)
269269

270270
call icepack_query_parameters(skl_bgc_out=skl_bgc, &
271-
z_tracers_out=z_tracers, solve_zsal_out=solve_zsal)
271+
z_tracers_out=z_tracers)
272272
call icepack_query_tracer_flags(tr_iage_out=tr_iage, tr_FY_out=tr_FY, &
273273
tr_lvl_out=tr_lvl, tr_pond_lvl_out=tr_pond_lvl, &
274274
tr_pond_topo_out=tr_pond_topo, tr_aero_out=tr_aero, tr_brine_out=tr_brine, &
@@ -381,8 +381,6 @@ subroutine init_restart
381381
if (trim(runtype) == 'continue') then
382382
if (tr_brine) &
383383
restart_hbrine = .true.
384-
if (solve_zsal) &
385-
restart_zsal = .true.
386384
if (skl_bgc .or. z_tracers) &
387385
restart_bgc = .true.
388386
endif
@@ -392,7 +390,7 @@ subroutine init_restart
392390
if (tr_brine .and. restart_hbrine) call read_restart_hbrine
393391
endif
394392

395-
if (solve_zsal .or. skl_bgc .or. z_tracers) then ! biogeochemistry
393+
if (skl_bgc .or. z_tracers) then ! biogeochemistry
396394
if (tr_fsd) then
397395
write (nu_diag,*) 'FSD implementation incomplete for use with BGC'
398396
call icepack_warnings_flush(nu_diag)

cicecore/drivers/direct/hadgem3/CICE_RunMod.F90

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ subroutine ice_step
134134
use ice_boundary, only: ice_HaloUpdate
135135
use ice_calendar, only: dt, dt_dyn, ndtd, diagfreq, write_restart, istep
136136
use ice_diagnostics, only: init_mass_diags, runtime_diags
137-
use ice_diagnostics_bgc, only: hbrine_diags, zsal_diags, bgc_diags
137+
use ice_diagnostics_bgc, only: hbrine_diags, bgc_diags
138138
use ice_domain, only: halo_info, nblocks
139139
use ice_domain_size, only: nslyr
140140
use ice_dyn_eap, only: write_restart_eap
@@ -169,12 +169,12 @@ subroutine ice_step
169169
logical (kind=log_kind) :: &
170170
tr_iage, tr_FY, tr_lvl, tr_fsd, &
171171
tr_pond_lvl, tr_pond_topo, tr_brine, tr_aero, &
172-
calc_Tsfc, skl_bgc, solve_zsal, z_tracers, wave_spec
172+
calc_Tsfc, skl_bgc, z_tracers, wave_spec
173173

174174
character(len=*), parameter :: subname = '(ice_step)'
175175

176176
call icepack_query_parameters(calc_Tsfc_out=calc_Tsfc, skl_bgc_out=skl_bgc, &
177-
solve_zsal_out=solve_zsal, z_tracers_out=z_tracers, ktherm_out=ktherm, &
177+
z_tracers_out=z_tracers, ktherm_out=ktherm, &
178178
wave_spec_out=wave_spec)
179179
call icepack_query_tracer_flags(tr_iage_out=tr_iage, tr_FY_out=tr_FY, &
180180
tr_lvl_out=tr_lvl, tr_pond_lvl_out=tr_pond_lvl, &
@@ -307,7 +307,6 @@ subroutine ice_step
307307
call ice_timer_start(timer_diags) ! diagnostics
308308
if (mod(istep,diagfreq) == 0) then
309309
call runtime_diags(dt) ! log file
310-
if (solve_zsal) call zsal_diags
311310
if (skl_bgc .or. z_tracers) call bgc_diags
312311
if (tr_brine) call hbrine_diags
313312
endif
@@ -327,7 +326,7 @@ subroutine ice_step
327326
if (tr_pond_topo) call write_restart_pond_topo
328327
if (tr_fsd) call write_restart_fsd
329328
if (tr_aero) call write_restart_aero
330-
if (solve_zsal .or. skl_bgc .or. z_tracers) &
329+
if (skl_bgc .or. z_tracers) &
331330
call write_restart_bgc
332331
if (tr_brine) call write_restart_hbrine
333332
if (kdyn == 2) call write_restart_eap
@@ -347,7 +346,7 @@ end subroutine ice_step
347346
subroutine coupling_prep (iblk)
348347

349348
use ice_arrays_column, only: alvdfn, alidfn, alvdrn, alidrn, &
350-
albicen, albsnon, albpndn, apeffn, fzsal_g, fzsal, snowfracn
349+
albicen, albsnon, albpndn, apeffn, snowfracn
351350
use ice_blocks, only: nx_block, ny_block, get_block, block
352351
use ice_domain, only: blocks_ice
353352
use ice_calendar, only: dt, nstreams
@@ -361,7 +360,7 @@ subroutine coupling_prep (iblk)
361360
swvdr, swidr, swvdf, swidf, Tf, Tair, Qa, strairxT, strairyt, &
362361
fsens, flat, fswabs, flwout, evap, Tref, Qref, &
363362
fsurfn_f, flatn_f, scale_fluxes, frzmlt_init, frzmlt
364-
use ice_flux_bgc, only: faero_ocn, fzsal_ai, fzsal_g_ai, flux_bio, flux_bio_ai
363+
use ice_flux_bgc, only: faero_ocn, flux_bio, flux_bio_ai
365364
use ice_grid, only: tmask
366365
use ice_state, only: aicen, aice, aice_init
367366
use ice_step_mod, only: ocean_mixed_layer
@@ -508,8 +507,6 @@ subroutine coupling_prep (iblk)
508507
fsalt_ai (i,j,iblk) = fsalt (i,j,iblk)
509508
fhocn_ai (i,j,iblk) = fhocn (i,j,iblk)
510509
fswthru_ai(i,j,iblk) = fswthru(i,j,iblk)
511-
fzsal_ai (i,j,iblk) = fzsal (i,j,iblk)
512-
fzsal_g_ai(i,j,iblk) = fzsal_g(i,j,iblk)
513510

514511
if (nbtrcr > 0) then
515512
do k = 1, nbtrcr
@@ -553,7 +550,6 @@ subroutine coupling_prep (iblk)
553550
faero_ocn(:,:,:,iblk), &
554551
alvdr (:,:,iblk), alidr (:,:,iblk), &
555552
alvdf (:,:,iblk), alidf (:,:,iblk), &
556-
fzsal (:,:,iblk), fzsal_g (:,:,iblk), &
557553
flux_bio(:,:,1:nbtrcr,iblk))
558554

559555
!echmod - comment this out for efficiency, if .not. calc_Tsfc

cicecore/drivers/direct/nemo_concepts/CICE_InitMod.F90

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ subroutine init_restart
242242
restart_fsd, read_restart_fsd, &
243243
restart_aero, read_restart_aero, &
244244
restart_hbrine, read_restart_hbrine, &
245-
restart_zsal, restart_bgc
245+
restart_bgc
246246
use ice_restart_driver, only: restartfile, restartfile_v4
247247
use ice_restart_shared, only: runtype, restart
248248
use ice_state ! almost everything
@@ -253,7 +253,7 @@ subroutine init_restart
253253
logical(kind=log_kind) :: &
254254
tr_iage, tr_FY, tr_lvl, tr_pond_lvl, &
255255
tr_pond_topo, tr_fsd, tr_aero, tr_brine, &
256-
skl_bgc, z_tracers, solve_zsal
256+
skl_bgc, z_tracers
257257
integer(kind=int_kind) :: &
258258
ntrcr
259259
integer(kind=int_kind) :: &
@@ -268,7 +268,7 @@ subroutine init_restart
268268
file=__FILE__, line=__LINE__)
269269

270270
call icepack_query_parameters(skl_bgc_out=skl_bgc, &
271-
z_tracers_out=z_tracers, solve_zsal_out=solve_zsal)
271+
z_tracers_out=z_tracers)
272272
call icepack_query_tracer_flags(tr_iage_out=tr_iage, tr_FY_out=tr_FY, &
273273
tr_lvl_out=tr_lvl, tr_pond_lvl_out=tr_pond_lvl, &
274274
tr_pond_topo_out=tr_pond_topo, tr_aero_out=tr_aero, tr_brine_out=tr_brine, &
@@ -381,8 +381,6 @@ subroutine init_restart
381381
if (trim(runtype) == 'continue') then
382382
if (tr_brine) &
383383
restart_hbrine = .true.
384-
if (solve_zsal) &
385-
restart_zsal = .true.
386384
if (skl_bgc .or. z_tracers) &
387385
restart_bgc = .true.
388386
endif
@@ -392,7 +390,7 @@ subroutine init_restart
392390
if (tr_brine .and. restart_hbrine) call read_restart_hbrine
393391
endif
394392

395-
if (solve_zsal .or. skl_bgc .or. z_tracers) then ! biogeochemistry
393+
if (skl_bgc .or. z_tracers) then ! biogeochemistry
396394
if (tr_fsd) then
397395
write (nu_diag,*) 'FSD implementation incomplete for use with BGC'
398396
call icepack_warnings_flush(nu_diag)

cicecore/drivers/direct/nemo_concepts/CICE_RunMod.F90

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ subroutine ice_step
134134
use ice_boundary, only: ice_HaloUpdate
135135
use ice_calendar, only: dt, dt_dyn, ndtd, diagfreq, write_restart, istep
136136
use ice_diagnostics, only: init_mass_diags, runtime_diags
137-
use ice_diagnostics_bgc, only: hbrine_diags, zsal_diags, bgc_diags
137+
use ice_diagnostics_bgc, only: hbrine_diags, bgc_diags
138138
use ice_domain, only: halo_info, nblocks
139139
use ice_domain_size, only: nslyr
140140
use ice_dyn_eap, only: write_restart_eap
@@ -169,12 +169,12 @@ subroutine ice_step
169169
logical (kind=log_kind) :: &
170170
tr_iage, tr_FY, tr_lvl, tr_fsd, &
171171
tr_pond_lvl, tr_pond_topo, tr_brine, tr_aero, &
172-
calc_Tsfc, skl_bgc, solve_zsal, z_tracers, wave_spec
172+
calc_Tsfc, skl_bgc, z_tracers, wave_spec
173173

174174
character(len=*), parameter :: subname = '(ice_step)'
175175

176176
call icepack_query_parameters(calc_Tsfc_out=calc_Tsfc, skl_bgc_out=skl_bgc, &
177-
solve_zsal_out=solve_zsal, z_tracers_out=z_tracers, ktherm_out=ktherm, &
177+
z_tracers_out=z_tracers, ktherm_out=ktherm, &
178178
wave_spec_out=wave_spec)
179179
call icepack_query_tracer_flags(tr_iage_out=tr_iage, tr_FY_out=tr_FY, &
180180
tr_lvl_out=tr_lvl, tr_pond_lvl_out=tr_pond_lvl, &
@@ -307,7 +307,6 @@ subroutine ice_step
307307
call ice_timer_start(timer_diags) ! diagnostics
308308
if (mod(istep,diagfreq) == 0) then
309309
call runtime_diags(dt) ! log file
310-
if (solve_zsal) call zsal_diags
311310
if (skl_bgc .or. z_tracers) call bgc_diags
312311
if (tr_brine) call hbrine_diags
313312
endif
@@ -327,7 +326,7 @@ subroutine ice_step
327326
if (tr_pond_topo) call write_restart_pond_topo
328327
if (tr_fsd) call write_restart_fsd
329328
if (tr_aero) call write_restart_aero
330-
if (solve_zsal .or. skl_bgc .or. z_tracers) &
329+
if (skl_bgc .or. z_tracers) &
331330
call write_restart_bgc
332331
if (tr_brine) call write_restart_hbrine
333332
if (kdyn == 2) call write_restart_eap
@@ -347,7 +346,7 @@ end subroutine ice_step
347346
subroutine coupling_prep (iblk)
348347

349348
use ice_arrays_column, only: alvdfn, alidfn, alvdrn, alidrn, &
350-
albicen, albsnon, albpndn, apeffn, fzsal_g, fzsal, snowfracn
349+
albicen, albsnon, albpndn, apeffn, snowfracn
351350
use ice_blocks, only: nx_block, ny_block, get_block, block
352351
use ice_domain, only: blocks_ice
353352
use ice_calendar, only: dt, nstreams
@@ -361,7 +360,7 @@ subroutine coupling_prep (iblk)
361360
swvdr, swidr, swvdf, swidf, Tf, Tair, Qa, strairxT, strairyt, &
362361
fsens, flat, fswabs, flwout, evap, Tref, Qref, &
363362
fsurfn_f, flatn_f, scale_fluxes, frzmlt_init, frzmlt
364-
use ice_flux_bgc, only: faero_ocn, fzsal_ai, fzsal_g_ai, flux_bio, flux_bio_ai
363+
use ice_flux_bgc, only: faero_ocn, flux_bio, flux_bio_ai
365364
use ice_grid, only: tmask
366365
use ice_state, only: aicen, aice, aice_init
367366
use ice_step_mod, only: ocean_mixed_layer
@@ -508,8 +507,6 @@ subroutine coupling_prep (iblk)
508507
fsalt_ai (i,j,iblk) = fsalt (i,j,iblk)
509508
fhocn_ai (i,j,iblk) = fhocn (i,j,iblk)
510509
fswthru_ai(i,j,iblk) = fswthru(i,j,iblk)
511-
fzsal_ai (i,j,iblk) = fzsal (i,j,iblk)
512-
fzsal_g_ai(i,j,iblk) = fzsal_g(i,j,iblk)
513510

514511
if (nbtrcr > 0) then
515512
do k = 1, nbtrcr
@@ -555,7 +552,6 @@ subroutine coupling_prep (iblk)
555552
faero_ocn(:,:,:,iblk), &
556553
alvdr (:,:,iblk), alidr (:,:,iblk), &
557554
alvdf (:,:,iblk), alidf (:,:,iblk), &
558-
fzsal (:,:,iblk), fzsal_g (:,:,iblk), &
559555
flux_bio(:,:,1:nbtrcr,iblk))
560556

561557
!echmod - comment this out for efficiency, if .not. calc_Tsfc

cicecore/drivers/mct/cesm1/CICE_RunMod.F90

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ subroutine ice_step
127127
use ice_calendar, only: dt, dt_dyn, ndtd, diagfreq, write_restart, istep
128128
use ice_calendar, only: idate, msec
129129
use ice_diagnostics, only: init_mass_diags, runtime_diags, debug_model, debug_ice
130-
use ice_diagnostics_bgc, only: hbrine_diags, zsal_diags, bgc_diags
130+
use ice_diagnostics_bgc, only: hbrine_diags, bgc_diags
131131
use ice_domain, only: halo_info, nblocks
132132
use ice_dyn_eap, only: write_restart_eap
133133
use ice_dyn_shared, only: kdyn, kridge
@@ -163,7 +163,7 @@ subroutine ice_step
163163
logical (kind=log_kind) :: &
164164
tr_iage, tr_FY, tr_lvl, tr_fsd, tr_snow, &
165165
tr_pond_lvl, tr_pond_topo, tr_brine, tr_iso, tr_aero, &
166-
calc_Tsfc, skl_bgc, solve_zsal, z_tracers, wave_spec
166+
calc_Tsfc, skl_bgc, z_tracers, wave_spec
167167

168168
character(len=*), parameter :: subname = '(ice_step)'
169169

@@ -177,7 +177,7 @@ subroutine ice_step
177177
endif
178178

179179
call icepack_query_parameters(calc_Tsfc_out=calc_Tsfc, skl_bgc_out=skl_bgc, &
180-
solve_zsal_out=solve_zsal, z_tracers_out=z_tracers, ktherm_out=ktherm, &
180+
z_tracers_out=z_tracers, ktherm_out=ktherm, &
181181
wave_spec_out=wave_spec)
182182
call icepack_query_tracer_flags(tr_iage_out=tr_iage, tr_FY_out=tr_FY, &
183183
tr_lvl_out=tr_lvl, tr_pond_lvl_out=tr_pond_lvl, &
@@ -374,7 +374,6 @@ subroutine ice_step
374374
call ice_timer_start(timer_diags) ! diagnostics
375375
if (mod(istep,diagfreq) == 0) then
376376
call runtime_diags(dt) ! log file
377-
if (solve_zsal) call zsal_diags
378377
if (skl_bgc .or. z_tracers) call bgc_diags
379378
if (tr_brine) call hbrine_diags
380379
if (my_task == master_task) then
@@ -399,7 +398,7 @@ subroutine ice_step
399398
if (tr_fsd) call write_restart_fsd
400399
if (tr_iso) call write_restart_iso
401400
if (tr_aero) call write_restart_aero
402-
if (solve_zsal .or. skl_bgc .or. z_tracers) &
401+
if (skl_bgc .or. z_tracers) &
403402
call write_restart_bgc
404403
if (tr_brine) call write_restart_hbrine
405404
if (kdyn == 2) call write_restart_eap
@@ -418,7 +417,7 @@ end subroutine ice_step
418417
subroutine coupling_prep (iblk)
419418

420419
use ice_arrays_column, only: alvdfn, alidfn, alvdrn, alidrn, &
421-
albicen, albsnon, albpndn, apeffn, fzsal_g, fzsal, snowfracn
420+
albicen, albsnon, albpndn, apeffn, snowfracn
422421
use ice_blocks, only: nx_block, ny_block, get_block, block
423422
use ice_domain, only: blocks_ice
424423
use ice_calendar, only: dt, nstreams
@@ -433,7 +432,7 @@ subroutine coupling_prep (iblk)
433432
fsens, flat, fswabs, flwout, evap, Tref, Qref, &
434433
scale_fluxes, frzmlt_init, frzmlt, Uref, wind
435434
use ice_flux_bgc, only: faero_ocn, fiso_ocn, Qref_iso, fiso_evap, &
436-
fzsal_ai, fzsal_g_ai, flux_bio, flux_bio_ai, &
435+
flux_bio, flux_bio_ai, &
437436
fnit, fsil, famm, fdmsp, fdms, fhum, fdust, falgalN, &
438437
fdoc, fdic, fdon, ffep, ffed, bgcflux_ice_to_ocn
439438
use ice_grid, only: tmask
@@ -586,8 +585,6 @@ subroutine coupling_prep (iblk)
586585
fsalt_ai (i,j,iblk) = fsalt (i,j,iblk)
587586
fhocn_ai (i,j,iblk) = fhocn (i,j,iblk)
588587
fswthru_ai(i,j,iblk) = fswthru(i,j,iblk)
589-
fzsal_ai (i,j,iblk) = fzsal (i,j,iblk)
590-
fzsal_g_ai(i,j,iblk) = fzsal_g(i,j,iblk)
591588

592589
if (nbtrcr > 0) then
593590
do k = 1, nbtrcr
@@ -633,7 +630,6 @@ subroutine coupling_prep (iblk)
633630
faero_ocn(:,:,:,iblk), &
634631
alvdr (:,:,iblk), alidr (:,:,iblk), &
635632
alvdf (:,:,iblk), alidf (:,:,iblk), &
636-
fzsal (:,:,iblk), fzsal_g (:,:,iblk), &
637633
flux_bio (:,:,1:nbtrcr,iblk), &
638634
Qref_iso =Qref_iso (:,:,:,iblk), &
639635
fiso_evap=fiso_evap(:,:,:,iblk), &

0 commit comments

Comments
 (0)