- Timestamp:
- 2020-05-14T21:46:00+02:00 (4 years ago)
- Location:
- NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser
- Property svn:externals
-
old new 6 6 ^/vendors/FCM@HEAD ext/FCM 7 7 ^/vendors/IOIPSL@HEAD ext/IOIPSL 8 9 # SETTE 10 ^/utils/CI/sette@HEAD sette
-
- Property svn:externals
-
NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser/src/OCE/C1D/step_c1d.F90
r12329 r12928 6 6 !! History : 2.0 ! 2004-04 (C. Ethe) adapted from step.F90 for C1D 7 7 !! 3.0 ! 2008-04 (G. Madec) redo the adaptation to include SBC 8 !! 4.1 ! 2019-08 (A. Coward, D. Storkey) rewrite in preparation for new timestepping scheme 8 9 !!---------------------------------------------------------------------- 9 10 #if defined key_c1d … … 14 15 !!---------------------------------------------------------------------- 15 16 USE step_oce ! time stepping definition modules 17 USE step, ONLY : Nbb, Nnn, Naa, Nrhs ! time level indices 16 18 #if defined key_top 17 19 USE trcstp ! passive tracer time-stepping (trc_stp routine) 18 20 #endif 19 21 USE dyncor_c1d ! Coriolis term (c1d case) (dyn_cor_1d ) 20 USE dyn nxt ! time-stepping (dyn_nxtroutine)22 USE dynatf ! time filtering (dyn_atf routine) 21 23 USE dyndmp ! U & V momentum damping (dyn_dmp routine) 22 24 USE restart ! restart … … 25 27 PRIVATE 26 28 27 PUBLIC stp_c1d ! called by opa.F9029 PUBLIC stp_c1d ! called by nemogcm.F90 28 30 29 31 !!---------------------------------------------------------------------- … … 68 70 ! Update data, open boundaries, surface boundary condition (including sea-ice) 69 71 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 70 CALL sbc ( kstp )! Sea Boundary Condition (including sea-ice)72 CALL sbc ( kstp, Nbb, Nnn ) ! Sea Boundary Condition (including sea-ice) 71 73 72 74 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 73 ! Ocean physics update (ua, va, ta, sa used as workspace)75 ! Ocean physics update 74 76 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 75 CALL eos_rab( ts b, rab_b )! before local thermal/haline expension ratio at T-points76 CALL eos_rab( ts n, rab_n )! now local thermal/haline expension ratio at T-points77 CALL bn2( ts b, rab_b, rn2b) ! before Brunt-Vaisala frequency78 CALL bn2( ts n, rab_n, rn2) ! now Brunt-Vaisala frequency77 CALL eos_rab( ts(:,:,:,:,Nbb), rab_b, Nnn ) ! before local thermal/haline expension ratio at T-points 78 CALL eos_rab( ts(:,:,:,:,Nnn), rab_n, Nnn ) ! now local thermal/haline expension ratio at T-points 79 CALL bn2( ts(:,:,:,:,Nbb), rab_b, rn2b, Nnn ) ! before Brunt-Vaisala frequency 80 CALL bn2( ts(:,:,:,:,Nnn), rab_n, rn2 , Nnn ) ! now Brunt-Vaisala frequency 79 81 80 82 ! VERTICAL PHYSICS 81 CALL zdf_phy( kstp )! vertical physics update (bfr, avt, avs, avm + MLD)83 CALL zdf_phy( kstp, Nbb, Nnn, Nrhs ) ! vertical physics update (bfr, avt, avs, avm + MLD) 82 84 83 IF(.NOT.ln_linssh ) CALL ssh_nxt ( kstp ) ! after ssh (includes call to div_hor)84 IF(.NOT.ln_linssh ) CALL dom_vvl_sf_nxt( kstp ) ! after vertical scale factors85 IF(.NOT.ln_linssh ) CALL ssh_nxt ( kstp, Nbb, Nnn, ssh, Naa ) ! after ssh (includes call to div_hor) 86 IF(.NOT.ln_linssh ) CALL dom_vvl_sf_nxt( kstp, Nbb, Nnn, Naa ) ! after vertical scale factors 85 87 86 IF(.NOT.ln_linssh ) CALL wzv ( kstp ) ! now cross-level velocity88 IF(.NOT.ln_linssh ) CALL wzv ( kstp, Nbb, Nnn, ww, Naa ) ! now cross-level velocity 87 89 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 88 ! diagnostics and outputs (ua, va, ta, sa used as workspace)90 ! diagnostics and outputs 89 91 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 90 CALL dia_wri( kstp )! ocean model: outputs91 IF( ll_diahth ) CALL dia_hth( kstp )! Thermocline depth (20°C)92 CALL dia_wri( kstp, Nnn ) ! ocean model: outputs 93 CALL dia_hth( kstp, Nnn ) ! Thermocline depth (20°C) 92 94 93 95 … … 96 98 ! Passive Tracer Model 97 99 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 98 CALL trc_stp( kstp )! time-stepping100 CALL trc_stp( kstp, Nbb, Nnn, Nrhs, Naa ) ! time-stepping 99 101 #endif 100 102 101 103 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 102 ! Active tracers (u a, vaused as workspace)104 ! Active tracers (uu(:,:,:,Nrhs), vv(:,:,:,Nrhs) used as workspace) 103 105 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 104 ts a(:,:,:,:) = 0._wp ! set tracer trends to zero106 ts(:,:,:,:,Nrhs) = 0._wp ! set tracer trends to zero 105 107 106 CALL tra_sbc( kstp ) ! surface boundary condition 107 IF( ln_traqsr ) CALL tra_qsr( kstp ) ! penetrative solar radiation qsr 108 IF( ln_tradmp ) CALL tra_dmp( kstp ) ! internal damping trends- tracers 109 IF(.NOT.ln_linssh)CALL tra_adv( kstp ) ! horizontal & vertical advection 110 IF( ln_zdfosm ) CALL tra_osm( kstp ) ! OSMOSIS non-local tracer fluxes 111 CALL tra_zdf( kstp ) ! vertical mixing 112 CALL eos( tsn, rhd, rhop, gdept_0(:,:,:) ) ! now potential density for zdfmxl 113 IF( ln_zdfnpc ) CALL tra_npc( kstp ) ! applied non penetrative convective adjustment on (t,s) 114 CALL tra_nxt( kstp ) ! tracer fields at next time step 115 116 108 CALL tra_sbc( kstp, Nnn, ts, Nrhs ) ! surface boundary condition 109 IF( ln_traqsr ) CALL tra_qsr( kstp, Nnn, ts, Nrhs ) ! penetrative solar radiation qsr 110 IF( ln_tradmp ) CALL tra_dmp( kstp, Nbb, Nnn, ts, Nrhs ) ! internal damping trends- tracers 111 IF(.NOT.ln_linssh)CALL tra_adv( kstp, Nbb, Nnn, ts, Nrhs ) ! horizontal & vertical advection 112 IF( ln_zdfosm ) CALL tra_osm( kstp, Nnn , ts, Nrhs ) ! OSMOSIS non-local tracer fluxes 113 CALL tra_zdf( kstp, Nbb, Nnn, Nrhs, ts, Naa ) ! vertical mixing 114 CALL eos( ts(:,:,:,:,Nnn), rhd, rhop, gdept_0(:,:,:) ) ! now potential density for zdfmxl 115 IF( ln_zdfnpc ) CALL tra_npc( kstp, Nnn, Nrhs, ts, Naa ) ! applied non penetrative convective adjustment on (t,s) 116 CALL tra_atf( kstp, Nbb, Nnn, Naa, ts ) ! time filtering of "now" tracer arrays 117 117 118 118 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 119 119 ! Dynamics (ta, sa used as workspace) 120 120 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 121 u a(:,:,:) = 0._wp ! set dynamics trends to zero122 v a(:,:,:) = 0._wp121 uu(:,:,:,Nrhs) = 0._wp ! set dynamics trends to zero 122 vv(:,:,:,Nrhs) = 0._wp 123 123 124 IF( ln_dyndmp ) CALL dyn_dmp ( kstp ) ! internal damping trends- momentum 125 CALL dyn_cor_c1d( kstp ) ! vorticity term including Coriolis 126 IF( ln_zdfosm ) CALL dyn_osm ( kstp ) ! OSMOSIS non-local velocity fluxes 127 CALL dyn_zdf ( kstp ) ! vertical diffusion 128 CALL dyn_nxt ( kstp ) ! lateral velocity at next time step 129 IF(.NOT.ln_linssh)CALL ssh_swp ( kstp ) ! swap of sea surface height 130 131 IF(.NOT.ln_linssh)CALL dom_vvl_sf_swp( kstp )! swap of vertical scale factors 124 IF( ln_dyndmp ) CALL dyn_dmp ( kstp, Nbb, Nnn , uu, vv, Nrhs ) ! internal damping trends- momentum 125 CALL dyn_cor_c1d( kstp, Nnn , uu, vv, Nrhs ) ! vorticity term including Coriolis 126 IF( ln_zdfosm ) CALL dyn_osm ( kstp, Nnn , uu, vv, Nrhs ) ! OSMOSIS non-local velocity fluxes 127 CALL dyn_zdf ( kstp, Nbb, Nnn, Nrhs, uu, vv, Naa ) ! vertical diffusion 128 CALL dyn_atf ( kstp, Nbb, Nnn, Naa , uu, vv, e3t, e3u, e3v ) ! time filtering of "now" fields 129 IF(.NOT.ln_linssh)CALL ssh_atf ( kstp, Nbb, Nnn, Naa , ssh ) ! time filtering of "now" sea surface height 130 ! 131 ! Swap time levels 132 Nrhs = Nbb 133 Nbb = Nnn 134 Nnn = Naa 135 Naa = Nrhs 136 ! 137 IF(.NOT.ln_linssh)CALL dom_vvl_sf_update( kstp, Nbb, Nnn, Naa ) ! update of vertical scale factors 132 138 133 139 !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 134 140 ! Control and restarts 135 141 !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 136 CALL stp_ctl( kstp, indic )137 IF( kstp == nit000 ) CALL iom_close( numror ) ! close input ocean restart file138 IF( lrst_oce ) CALL rst_write( kstp )! write output ocean restart file142 CALL stp_ctl( kstp, Nbb, Nnn, indic ) 143 IF( kstp == nit000 ) CALL iom_close( numror ) ! close input ocean restart file 144 IF( lrst_oce ) CALL rst_write( kstp, Nbb, Nnn ) ! write output ocean restart file 139 145 ! 140 146 #if defined key_iomput
Note: See TracChangeset
for help on using the changeset viewer.