- Timestamp:
- 2019-11-22T15:29:17+01:00 (4 years ago)
- Location:
- NEMO/branches/2019/dev_r11943_MERGE_2019/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11943_MERGE_2019/src
- Property svn:mergeinfo deleted
-
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OFF/nemogcm.F90
r11536 r11949 7 7 !! 3.4 ! 2011-01 (C. Ethe, A. R. Porter, STFC Daresbury) dynamical allocation 8 8 !! 4.0 ! 2016-10 (C. Ethe, G. Madec, S. Flavoni) domain configuration / user defined interface 9 !! 4.1 ! 2019-08 (A. Coward, D. Storkey) rewrite in preparation for new timestepping scheme 9 10 !!---------------------------------------------------------------------- 10 11 … … 59 60 USE lib_fortran ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined) 60 61 USE lbcnfd , ONLY : isendto, nsndto, nfsloop, nfeloop ! Setup of north fold exchanges 62 USE step, ONLY : Nbb, Nnn, Naa, Nrhs ! time level indices 61 63 62 64 IMPLICIT NONE … … 111 113 CALL iom_setkt ( istp - nit000 + 1, cxios_context ) ! say to iom that we are at time step kstp 112 114 #if defined key_sed_off 113 CALL dta_dyn_sed( istp )! Interpolation of the dynamical fields115 CALL dta_dyn_sed( istp, Nnn ) ! Interpolation of the dynamical fields 114 116 #else 115 CALL dta_dyn ( istp ) ! Interpolation of the dynamical fields 116 IF( .NOT.ln_linssh ) CALL dta_dyn_swp( istp ) ! swap of sea surface height and vertical scale factors 117 #endif 118 CALL trc_stp ( istp ) ! time-stepping 117 CALL dta_dyn ( istp, Nbb, Nnn, Naa ) ! Interpolation of the dynamical fields 118 #endif 119 CALL trc_stp ( istp, Nbb, Nnn, Nrhs, Naa ) ! time-stepping 120 #if ! defined key_sed_off 121 IF( .NOT.ln_linssh ) CALL dta_dyn_atf( istp, Nbb, Nnn, Naa ) ! time filter of sea surface height and vertical scale factors 122 #endif 123 ! Swap time levels 124 Nrhs = Nbb 125 Nbb = Nnn 126 Nnn = Naa 127 Naa = Nrhs 128 ! 129 #if ! defined key_sed_off 130 IF( .NOT.ln_linssh ) CALL dta_dyn_sf_interp( istp, Nnn ) ! calculate now grid parameters 131 #endif 119 132 CALL stp_ctl ( istp, indic ) ! Time loop: control and print 120 133 istp = istp + 1 … … 285 298 CALL nemo_alloc() 286 299 300 ! Initialise time level indices 301 Nbb = 1; Nnn = 2; Naa = 3; Nrhs = Naa 302 303 287 304 ! !-------------------------------! 288 305 ! ! NEMO general initialization ! … … 298 315 CALL eos_init ! Equation of state 299 316 IF( lk_c1d ) CALL c1d_init ! 1D column configuration 300 CALL dom_init( "OPA") ! Domain317 CALL dom_init( Nbb, Nnn, Naa, "OPA") ! Domain 301 318 IF( ln_ctl ) CALL prt_ctl_init ! Print control 302 319 303 CALL istate_init ! ocean initial state (Dynamics and tracers)304 305 CALL sbc_init ! Forcings : surface module320 CALL istate_init( Nnn, Naa ) ! ocean initial state (Dynamics and tracers) 321 322 CALL sbc_init( Nbb, Nnn, Naa ) ! Forcings : surface module 306 323 307 324 ! ! Tracer physics … … 317 334 CALL trc_rst_cal( nit000, 'READ' ) ! calendar 318 335 #if defined key_sed_off 319 CALL dta_dyn_sed_init ! Initialization for the dynamics336 CALL dta_dyn_sed_init( Nnn ) ! Initialization for the dynamics 320 337 #else 321 CALL dta_dyn_init ! Initialization for the dynamics322 #endif 323 324 CALL trc_init ! Passive tracers initialization338 CALL dta_dyn_init( Nbb, Nnn, Naa ) ! Initialization for the dynamics 339 #endif 340 341 CALL trc_init( Nbb, Nnn, Naa ) ! Passive tracers initialization 325 342 CALL dia_ptr_init ! Poleward TRansports initialization 326 343 … … 510 527 END SUBROUTINE nemo_set_cfctl 511 528 512 SUBROUTINE istate_init 529 SUBROUTINE istate_init( Kmm, Kaa ) 513 530 !!---------------------------------------------------------------------- 514 531 !! *** ROUTINE istate_init *** … … 516 533 !! ** Purpose : Initialization to zero of the dynamics and tracers. 517 534 !!---------------------------------------------------------------------- 535 INTEGER, INTENT(in) :: Kmm, Kaa ! ocean time level indices 518 536 ! 519 537 ! now fields ! after fields ! 520 u n (:,:,:) = 0._wp ; ua(:,:,:) = 0._wp !521 v n (:,:,:) = 0._wp ; va(:,:,:) = 0._wp !522 w n(:,:,:) = 0._wp ! !523 hdiv n(:,:,:) = 0._wp ! !524 ts n (:,:,:,:) = 0._wp ! !538 uu (:,:,:,Kmm) = 0._wp ; uu(:,:,:,Kaa) = 0._wp ! 539 vv (:,:,:,Kmm) = 0._wp ; vv(:,:,:,Kaa) = 0._wp ! 540 ww (:,:,:) = 0._wp ! ! 541 hdiv (:,:,:) = 0._wp ! ! 542 ts (:,:,:,:,Kmm) = 0._wp ! ! 525 543 ! 526 544 rhd (:,:,:) = 0.e0
Note: See TracChangeset
for help on using the changeset viewer.