From 967ca2c8987e604b1875252ae1fb8588c79cc4fc Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Wed, 26 Jan 2022 14:41:00 +0100 Subject: [PATCH 01/14] Update recom_main.F90 Write correct ph values out GloHplus(n) = ph(1) !hplus --- src/int_recom/recom_main.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/int_recom/recom_main.F90 b/src/int_recom/recom_main.F90 index fdd5517e8..42e8a9d3a 100755 --- a/src/int_recom/recom_main.F90 +++ b/src/int_recom/recom_main.F90 @@ -164,7 +164,7 @@ subroutine recom(mesh) GloCO2flux_seaicemask_14(n) = co2flux_seaicemask_14(1) ! [mmol/m2/s] end if - GloHplus(n) = hplus + GloHplus(n) = ph(1) !hplus AtmFeInput(n) = FeDust AtmNInput(n) = NDust ! DenitBen(n) = LocDenit From 42059b695e9f652c307e16086d4dc3a2d2cf8ac5 Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Wed, 9 Feb 2022 10:21:24 +0100 Subject: [PATCH 02/14] Update recom_extra.F90 Aeolian Deposition fix for the time period prior to 1850. --- src/int_recom/recom_extra.F90 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/int_recom/recom_extra.F90 b/src/int_recom/recom_extra.F90 index 1873545d1..db01d4d96 100755 --- a/src/int_recom/recom_extra.F90 +++ b/src/int_recom/recom_extra.F90 @@ -270,10 +270,12 @@ subroutine Atm_input(mesh) if (useAeolianN) then i=1 ! A single time entry DustNfilename = trim(REcoMDataPath)//'AeolianNitrogenDep.nc' - if (yearnew .lt. 2010) then - Nvari = 'NDep'//cyearnew - else + if (yearnew .gt. 2009) then Nvari = 'NDep2009' + else if (yearnew .lt. 1850) then + Nvari = 'NDep1850' + else + Nvari = 'NDep'//cyearnew endif if (mype==0) write(*,*) 'Updating Nitrogen deposition data for month ', i From 8c922f2aa1b5de51695301e0067f21e426b3158a Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Fri, 4 Mar 2022 10:57:26 +0100 Subject: [PATCH 03/14] Update io_meandata.F90 --- src/io_meandata.F90 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/io_meandata.F90 b/src/io_meandata.F90 index 76138f47a..0425f5581 100644 --- a/src/io_meandata.F90 +++ b/src/io_meandata.F90 @@ -340,22 +340,22 @@ subroutine ini_mean_io(mesh) CASE ('benN ') if (use_REcoM) then - call def_stream(nod2D, myDim_nod2D, 'benN','Benthos Nitrogen','mmol/m2', Benthos(:,1), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, mesh) + call def_stream(nod2D, myDim_nod2D, 'benN','Benthos Nitrogen','mmol', Benthos(:,1), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, mesh) end if CASE ('benC ') if (use_REcoM) then - call def_stream(nod2D, myDim_nod2D, 'benC','Benthos Carbon','mmol/m2', Benthos(:,2), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, mesh) + call def_stream(nod2D, myDim_nod2D, 'benC','Benthos Carbon','mmol', Benthos(:,2), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, mesh) end if CASE ('benSi ') if (use_REcoM) then - call def_stream(nod2D, myDim_nod2D, 'benSi','Benthos silicon','mmol/m2', Benthos(:,3), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, mesh) + call def_stream(nod2D, myDim_nod2D, 'benSi','Benthos silicon','mmol', Benthos(:,3), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, mesh) end if CASE ('benCalc ') if (use_REcoM) then - call def_stream(nod2D, myDim_nod2D, 'benCalc','Benthos calcite','mmol/m2', Benthos(:,4), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, mesh) + call def_stream(nod2D, myDim_nod2D, 'benCalc','Benthos calcite','mmol', Benthos(:,4), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, mesh) end if ! ciso CASE ('benC_13 ') From fac6d97af37b5a02cfbc2d8c13af1dea0a7d27e2 Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Fri, 4 Mar 2022 11:07:18 +0100 Subject: [PATCH 04/14] Update recom_main.F90 add "if (.not. restore_alk) return" to subroutine bio_fluxes --- src/int_recom/recom_main.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/int_recom/recom_main.F90 b/src/int_recom/recom_main.F90 index 42e8a9d3a..a242c9b44 100755 --- a/src/int_recom/recom_main.F90 +++ b/src/int_recom/recom_main.F90 @@ -274,7 +274,7 @@ subroutine bio_fluxes(mesh) ! end if ! Alkalinity restoring to climatology - + if (.not. restore_alkalinity) return do n=1, myDim_nod2D+eDim_nod2D relax_alk(n)=surf_relax_Alk*(Alk_surf(n)-tr_arr(1,n,2+ialk)) ! 1 temp, 2 salt end do From cdba062a7b14a8b273ccaa2cfe8289b138e94a64 Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Thu, 2 Jun 2022 09:51:31 +0200 Subject: [PATCH 05/14] Update oce_setup_step.F90 Comment restore_alkalinity flag out. --- src/oce_setup_step.F90 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/oce_setup_step.F90 b/src/oce_setup_step.F90 index e0771c4bd..a2220d35a 100755 --- a/src/oce_setup_step.F90 +++ b/src/oce_setup_step.F90 @@ -281,11 +281,11 @@ SUBROUTINE array_setup(mesh) ! ================ #if defined(__recom) if(use_REcoM) then - if (restore_alkalinity) then + !if (restore_alkalinity) then allocate(Alk_surf(node_size)) allocate(relax_alk(node_size)) allocate(virtual_alk(node_size)) - endif + !endif end if #endif ! ================= @@ -450,11 +450,11 @@ SUBROUTINE array_setup(mesh) ! ================ #if defined(__recom) if(use_REcoM) then - if (restore_alkalinity) then + !if (restore_alkalinity) then Alk_surf=0.0_WP relax_alk=0.0_WP virtual_alk=0.0_WP - endif + !endif end if #endif ! init field for pressure force From 92b9c4c0d601aa0dcc5b7e17c14f0743ac7b1b0c Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Thu, 2 Jun 2022 09:57:15 +0200 Subject: [PATCH 06/14] Update recom_sinking.F90 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Laurent’s fix for sinking second detritus class in recom_sinking.F90 --- src/recom_sinking.F90 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/recom_sinking.F90 b/src/recom_sinking.F90 index db6b99f8e..1d4c9c57a 100644 --- a/src/recom_sinking.F90 +++ b/src/recom_sinking.F90 @@ -65,6 +65,13 @@ subroutine recom_sinking_new(tr_num,mesh) tracer_id(tr_num)==1015 ) then !idchl Vsink = VDia + + elseif(tracer_id(tr_num)==1025 .or. & !idetz2n + tracer_id(tr_num)==1026 .or. & !idetz2c + tracer_id(tr_num)==1027 .or. & !idetz2si + tracer_id(tr_num)==1028 ) then !idetz2calc + + Vsink = VDet_zoo2 end if !if (Vsink .lt. 0.1) return @@ -98,7 +105,7 @@ subroutine recom_sinking_new(tr_num,mesh) tracer_id(tr_num)==1026 .or. & !idetz2c tracer_id(tr_num)==1027 .or. & !idetz2si tracer_id(tr_num)==1028 ) then !idetz2calc - Wvel_flux(nz) = -VDet_zoo2/SecondsPerDay ! --> VDet_zoo2 + Wvel_flux(nz) = -Vsink/SecondsPerDay ! --> VDet_zoo2 endif end do From ef96fd97682a6b09d340bacc2c78a768a209fcc8 Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Thu, 2 Jun 2022 10:00:40 +0200 Subject: [PATCH 07/14] Update recom_sms.F90 Variable calc_diss in recom_sms.F90 --- src/int_recom/recom_sms.F90 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/int_recom/recom_sms.F90 b/src/int_recom/recom_sms.F90 index a490edfe1..f2cb069bf 100755 --- a/src/int_recom/recom_sms.F90 +++ b/src/int_recom/recom_sms.F90 @@ -162,7 +162,9 @@ subroutine REcoM_sms(n,Nn,state,thick,recipthick,SurfSR,sms,Temp,SinkVel,zF,PAR, PhyCalc= max(tiny,state(k,iphycal) + sms(k,iphycal)) DetCalc= max(tiny,state(k,idetcal) + sms(k,idetcal)) - calc_diss = calc_diss_rate * SinkVel(k,ivdet) /20.d0 ! Dissolution rate of CaCO3 scaled by the sinking velocity at the current depth 0.005714 !20.d0/3500.d0 + Sink_Vel = Vdet_a* abs(zF(k)) + Vdet + calc_diss = calc_diss_rate * SinkVel /20.d0 + !calc_diss = calc_diss_rate * SinkVel(k,ivdet) /20.d0 ! Dissolution rate of CaCO3 scaled by the sinking velocity at the current depth 0.005714 !20.d0/3500.d0 calc_diss2 = calc_diss_rate2 ! Dissolution rate of CaCO3 for seczoo quota = PhyN / PhyC ! include variability of the N: C ratio, cellular chemical composition From 02d81cdb8d66fc2cb88862d8de7c2de9b3072114 Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Tue, 14 Jun 2022 13:43:33 +0200 Subject: [PATCH 08/14] Update recom_sms.F90 --- src/int_recom/recom_sms.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/int_recom/recom_sms.F90 b/src/int_recom/recom_sms.F90 index f2cb069bf..0981dfcc7 100755 --- a/src/int_recom/recom_sms.F90 +++ b/src/int_recom/recom_sms.F90 @@ -163,7 +163,7 @@ subroutine REcoM_sms(n,Nn,state,thick,recipthick,SurfSR,sms,Temp,SinkVel,zF,PAR, DetCalc= max(tiny,state(k,idetcal) + sms(k,idetcal)) Sink_Vel = Vdet_a* abs(zF(k)) + Vdet - calc_diss = calc_diss_rate * SinkVel /20.d0 + calc_diss = calc_diss_rate * Sink_Vel /20.d0 !calc_diss = calc_diss_rate * SinkVel(k,ivdet) /20.d0 ! Dissolution rate of CaCO3 scaled by the sinking velocity at the current depth 0.005714 !20.d0/3500.d0 calc_diss2 = calc_diss_rate2 ! Dissolution rate of CaCO3 for seczoo From 02334446c58a7b86b56e6ea1be0a509ed1e12f84 Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Tue, 14 Jun 2022 13:46:21 +0200 Subject: [PATCH 09/14] Update recom_sms.F90 --- src/int_recom/recom_sms.F90 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/int_recom/recom_sms.F90 b/src/int_recom/recom_sms.F90 index 0981dfcc7..300a5655d 100755 --- a/src/int_recom/recom_sms.F90 +++ b/src/int_recom/recom_sms.F90 @@ -47,6 +47,7 @@ subroutine REcoM_sms(n,Nn,state,thick,recipthick,SurfSR,sms,Temp,SinkVel,zF,PAR, real(kind=8) :: Fc !< Flux of labile C into sediment, used for denitrification calculation [umolC/cm2/s] real(kind=8) :: recip_hetN_plus !< MB's addition to heterotrophic respiration real(kind=8) :: recip_res_het !< [day] Reciprocal of respiration by heterotrophs and mortality (loss to detritus) + real(kind=8) :: Sink_Vel real(kind=8) :: aux integer :: k,step,ii, idiags,n real(kind=8) :: & From 88f7f170ce5aafba58494be3798df741d90d91df Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Tue, 14 Jun 2022 14:08:54 +0200 Subject: [PATCH 10/14] Update recom_sms.F90 Removed SinkVel. It is computed in recom_sms. --- src/int_recom/recom_sms.F90 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/int_recom/recom_sms.F90 b/src/int_recom/recom_sms.F90 index 300a5655d..768e28abb 100755 --- a/src/int_recom/recom_sms.F90 +++ b/src/int_recom/recom_sms.F90 @@ -1,4 +1,4 @@ -subroutine REcoM_sms(n,Nn,state,thick,recipthick,SurfSR,sms,Temp,SinkVel,zF,PAR, mesh) +subroutine REcoM_sms(n,Nn,state,thick,recipthick,SurfSR,sms,Temp,zF,PAR, mesh) use REcoM_declarations use REcoM_LocVar @@ -33,7 +33,6 @@ subroutine REcoM_sms(n,Nn,state,thick,recipthick,SurfSR,sms,Temp,SinkVel,zF,PAR, real(kind=8),dimension(mesh%nl-1,bgc_num),intent(inout) :: sms !< Source-Minus-Sinks term real(kind=8),dimension(mesh%nl-1) ,intent(in) :: Temp !< [degrees C] Ocean temperature - real(kind=8),dimension(mesh%nl,4) ,intent(in) :: SinkVel real(kind=8),dimension(mesh%nl) ,intent(in) :: zF !< [m] Depth of fluxes real(kind=8),dimension(mesh%nl-1),intent(inout) :: PAR @@ -165,7 +164,6 @@ subroutine REcoM_sms(n,Nn,state,thick,recipthick,SurfSR,sms,Temp,SinkVel,zF,PAR, Sink_Vel = Vdet_a* abs(zF(k)) + Vdet calc_diss = calc_diss_rate * Sink_Vel /20.d0 - !calc_diss = calc_diss_rate * SinkVel(k,ivdet) /20.d0 ! Dissolution rate of CaCO3 scaled by the sinking velocity at the current depth 0.005714 !20.d0/3500.d0 calc_diss2 = calc_diss_rate2 ! Dissolution rate of CaCO3 for seczoo quota = PhyN / PhyC ! include variability of the N: C ratio, cellular chemical composition From 0195e5d68d2d8227d38d18eb204e223c37e1de7b Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Tue, 14 Jun 2022 14:10:18 +0200 Subject: [PATCH 11/14] Update recom_forcing.F90 SinkVel is removed. It is computed in recom_sms. --- src/int_recom/recom_forcing.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/int_recom/recom_forcing.F90 b/src/int_recom/recom_forcing.F90 index 79892d199..7b971bd61 100755 --- a/src/int_recom/recom_forcing.F90 +++ b/src/int_recom/recom_forcing.F90 @@ -170,7 +170,7 @@ subroutine REcoM_Forcing(zNodes, n, Nn, state, SurfSW, Loc_slp, Temp, Sali, PAR, ! addtiny(1:nn,3) = state(1:nn,idiasi) ! addtiny(1:nn,4) = state(1:nn,idetz2si) - call REcoM_sms(n, Nn, state, thick, recipthick, SurfSW, sms, Temp, SinkVel, zF, PAR, mesh) + call REcoM_sms(n, Nn, state, thick, recipthick, SurfSW, sms, Temp, zF, PAR, mesh) ! addtiny(1:nn,1) = (state(1:nn,isi) - aux(1:nn,isi)) ! addtiny(1:nn,2) = (state(1:nn,idetsi) - aux(1:nn,idetsi)) From 210f9eaafd31fd21b3d6092a432a5326d238f27e Mon Sep 17 00:00:00 2001 From: ogurses <81712667+ogurses@users.noreply.github.com> Date: Mon, 27 Jun 2022 09:31:28 +0200 Subject: [PATCH 12/14] Update oce_ale_tracer.F90 Bug fixes related to benthos sinking (from Ying) --- src/oce_ale_tracer.F90 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/oce_ale_tracer.F90 b/src/oce_ale_tracer.F90 index 6b3dcc012..dfd9a40eb 100644 --- a/src/oce_ale_tracer.F90 +++ b/src/oce_ale_tracer.F90 @@ -950,9 +950,9 @@ subroutine ver_sinking_recom_benthos(tr_num,mesh) tv = tr_arr(nz,n,tr_num)*Vben(nz) aux(nz)= - tv*(area(nz,n)-area(nz+1,n)) end do - nz=nl1 - tv = tr_arr(nz,n,tr_num)*Vben(nz) - aux(nz)= - tv*(area(nz+1,n)) + !nz=nl1 + !tv = tr_arr(nz,n,tr_num)*Vben(nz) + !aux(nz)= - tv*(area(nz+1,n)) do nz=ul1,nl1 str_bf(nz,n) = str_bf(nz,n) + (aux(nz))*dt/area(nz,n)/(zbar_3d_n(nz,n)-zbar_3d_n(nz+1,n)) From 980f33bc879a36c04008b90688e89cd70d1593bd Mon Sep 17 00:00:00 2001 From: Ozgur Gurses Date: Tue, 1 Nov 2022 10:33:25 +0100 Subject: [PATCH 13/14] cleaning addtiny, aux,etc... --- src/int_recom/recom_forcing.F90 | 26 +------------------------- src/int_recom/recom_init.F90 | 24 ++++-------------------- 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/src/int_recom/recom_forcing.F90 b/src/int_recom/recom_forcing.F90 index 7b971bd61..269959b93 100755 --- a/src/int_recom/recom_forcing.F90 +++ b/src/int_recom/recom_forcing.F90 @@ -63,7 +63,7 @@ subroutine REcoM_Forcing(zNodes, n, Nn, state, SurfSW, Loc_slp, Temp, Sali, PAR, Real(kind=8) :: REcoM_O2(1) ! [mmol/m3] Conc of O2 in the surface water, used to calculate O2 flux ! Subroutine REcoM_sms - Real(kind=8),dimension(mesh%nl-1,bgc_num) :: sms, aux ! matrix that entail changes in tracer concentrations + Real(kind=8),dimension(mesh%nl-1,bgc_num) :: sms ! matrix that entail changes in tracer concentrations !Diagnostics integer :: idiags,n,k @@ -164,22 +164,8 @@ subroutine REcoM_Forcing(zNodes, n, Nn, state, SurfSW, Loc_slp, Temp, Sali, PAR, if (recom_debug .and. mype==0) print *, achar(27)//'[36m'//' --> REcoM_sms'//achar(27)//'[0m' - -! addtiny(1:nn,1) = state(1:nn,isi) -! addtiny(1:nn,2) = state(1:nn,idetsi) -! addtiny(1:nn,3) = state(1:nn,idiasi) -! addtiny(1:nn,4) = state(1:nn,idetz2si) - call REcoM_sms(n, Nn, state, thick, recipthick, SurfSW, sms, Temp, zF, PAR, mesh) -! addtiny(1:nn,1) = (state(1:nn,isi) - aux(1:nn,isi)) -! addtiny(1:nn,2) = (state(1:nn,idetsi) - aux(1:nn,idetsi)) -! addtiny(1:nn,3) = (state(1:nn,idiasi) - aux(1:nn,idiasi)) -! addtiny(1:nn,4) = (state(1:nn,idetz2si) - aux(1:nn,idetz2si)) - -! aux=0.0d0 -! aux(1:nn,:) = state(1:nn,:) + sms(1:nn,:) - state(1:nn,:) = max(tiny,state(1:nn,:) + sms(1:nn,:)) state(1:nn,ipchl) = max(tiny_chl,state(1:nn,ipchl)) state(1:nn,iphyn) = max(tiny_N, state(1:nn,iphyn)) @@ -189,16 +175,6 @@ subroutine REcoM_Forcing(zNodes, n, Nn, state, SurfSW, Loc_slp, Temp, Sali, PAR, state(1:nn,idiac) = max(tiny_C_d,state(1:nn,idiac)) state(1:nn,idiasi) = max(tiny_Si, state(1:nn,idiasi)) -! addtiny(1:nn,5) = (state(1:nn,isi) - aux(1:nn,isi)) -! addtiny(1:nn,6) = (state(1:nn,idetsi) - aux(1:nn,idetsi)) -! addtiny(1:nn,7) = (state(1:nn,idiasi) - aux(1:nn,idiasi)) -! addtiny(1:nn,8) = (state(1:nn,idetz2si) - aux(1:nn,idetz2si)) - -! addtiny(1:nn,5) = state(1:nn,isi) -! addtiny(1:nn,6) = state(1:nn,idetsi) -! addtiny(1:nn,7) = state(1:nn,idiasi) -! addtiny(1:nn,8) = state(1:nn,idetz2si) - if (recom_debug .and. mype==0) print *, achar(27)//'[36m'//' --> ciso after REcoM_Forcing'//achar(27)//'[0m' if (ciso) then ! Calculcate isotopic fractionation of 13|14C, radioactive decay of 14C is calculated in oce_ale_tracer.F90 diff --git a/src/int_recom/recom_init.F90 b/src/int_recom/recom_init.F90 index 7a7818201..13d883448 100644 --- a/src/int_recom/recom_init.F90 +++ b/src/int_recom/recom_init.F90 @@ -272,28 +272,12 @@ subroutine recom_init(mesh) !if (REcoM_Second_Zoo) then tr_arr(:,:,25) = tiny ! tracer 25 = Zoo2N tr_arr(:,:,26) = tiny * Redfield ! tracer 26 = Zoo2C + tr_arr(:,:,27) = tiny ! tracer 26 = DetZ2N + tr_arr(:,:,28) = tiny ! tracer 27 = DetZ2C + tr_arr(:,:,29) = tiny ! tracer 28 = DetZ2Si + tr_arr(:,:,30) = tiny ! tracer 29 = DetZ2Calc !endif - - - if (REcoM_Second_Zoo) then -! if (REcoM_Second_Zoo .and. zoo2_initial_field) then -! tracer(:,:,27) = tiny ! tracer 26 = DetZ2N -! tracer(:,:,28) = tiny ! tracer 27 = DetZ2C -! tracer(:,:,29) = tiny ! tracer 28 = DetZ2Si -! tracer(:,:,30) = tiny ! tracer 29 = DetZ2Calc -! else -! tracer(:,:,25) = tiny ! tracer 24 = Zoo2N -! tracer(:,:,26) = tiny ! tracer 25 = Zoo2C - tracer(:,:,27) = tiny ! tracer 26 = DetZ2N - tracer(:,:,28) = tiny ! tracer 27 = DetZ2C - tracer(:,:,29) = tiny ! tracer 28 = DetZ2Si - tracer(:,:,30) = tiny ! tracer 29 = DetZ2Calc -! endif - endif - - - if (ciso) then tr_arr(:,:,27) = (1. + 0.001 * (2.3 - 0.06 * tr_arr(:,:,3))) * tr_arr(:,:,4) ! DIC_13, GLODAP2 > 500 m tr_arr(:,:,28) = (1. - 0.001 * (70. + tr_arr(:,:,20))) * tr_arr(:,:,4) ! DIC_14, Broecker et al. (1995) From acbf8385e3f3476ab81b8bf227cc237969da6eaa Mon Sep 17 00:00:00 2001 From: Ozgur Gurses Date: Fri, 6 Jan 2023 13:12:44 +0100 Subject: [PATCH 14/14] bugfix for the case REcoM_Second_Zoo=.false. --- src/int_recom/recom_init.F90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/int_recom/recom_init.F90 b/src/int_recom/recom_init.F90 index 13d883448..265bcc2b7 100644 --- a/src/int_recom/recom_init.F90 +++ b/src/int_recom/recom_init.F90 @@ -269,14 +269,14 @@ subroutine recom_init(mesh) !!#endif !tr_arr(:,:,24) ! tracer 24 = Oxy ! read from the file -!if (REcoM_Second_Zoo) then +if (REcoM_Second_Zoo) then tr_arr(:,:,25) = tiny ! tracer 25 = Zoo2N tr_arr(:,:,26) = tiny * Redfield ! tracer 26 = Zoo2C tr_arr(:,:,27) = tiny ! tracer 26 = DetZ2N tr_arr(:,:,28) = tiny ! tracer 27 = DetZ2C tr_arr(:,:,29) = tiny ! tracer 28 = DetZ2Si tr_arr(:,:,30) = tiny ! tracer 29 = DetZ2Calc -!endif +endif if (ciso) then tr_arr(:,:,27) = (1. + 0.001 * (2.3 - 0.06 * tr_arr(:,:,3))) * tr_arr(:,:,4) ! DIC_13, GLODAP2 > 500 m