Changeset 14200 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/DOM/domain.F90
- Timestamp:
- 2020-12-17T15:36:44+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/DOM/domain.F90
r14090 r14200 28 28 USE oce ! ocean variables 29 29 USE dom_oce ! domain: ocean 30 USE domtile ! tiling utilities 30 31 #if defined key_qco 31 USE domqco ! quasi-eulerian 32 USE domqco ! quasi-eulerian coord. 33 #elif defined key_linssh 34 ! ! fix in time coord. 32 35 #else 33 USE domvvl ! variable volume 34 #endif 35 USE sshwzv , ONLY : ssh_init_rst ! set initial ssh 36 USE domvvl ! variable volume coord. 37 #endif 38 #if defined key_agrif 39 USE agrif_oce_interp, ONLY : Agrif_istate_ssh ! ssh interpolated from parent 40 #endif 36 41 USE sbc_oce ! surface boundary condition: ocean 37 42 USE trc_oce ! shared ocean & passive tracers variab … … 39 44 USE domhgr ! domain: set the horizontal mesh 40 45 USE domzgr ! domain: set the vertical mesh 41 USE domtile42 46 USE dommsk ! domain: set the mask system 43 47 USE domwri ! domain: write the meshmask file … … 51 55 USE lbclnk ! ocean lateral boundary condition (or mpp link) 52 56 USE lib_mpp ! distributed memory computing library 53 USE restart ! only for lrst_oce 57 USE restart ! only for lrst_oce and rst_read_ssh 54 58 55 59 IMPLICIT NONE … … 169 173 DO_2D( 1, 1, 1, 1 ) 170 174 IF( ht_0(ji,jj) < 0._wp .AND. ssmask(ji,jj) == 1._wp ) THEN 171 CALL ctl_stop( ' ssh_init_rst : ht_0 must be positive at potentially wet points' )175 CALL ctl_stop( 'dom_init : ht_0 must be positive at potentially wet points' ) 172 176 ENDIF 173 177 END_2D … … 177 181 ! 178 182 ! != ssh initialization 179 IF( .NOT.l_offline .AND. .NOT.l_SAS ) THEN 180 CALL ssh_init_rst( Kbb, Kmm, Kaa ) 181 ELSE 183 ! 184 IF( l_offline .OR. l_SAS ) THEN !* No ocean dynamics calculation : set to 0 182 185 ssh(:,:,:) = 0._wp 183 ENDIF 184 ! 186 #if defined key_agrif 187 ELSEIF( .NOT.Agrif_root() .AND. & 188 & ln_init_chfrpar ) THEN !* Interpolate initial ssh from parent 189 CALL Agrif_istate_ssh( Kbb, Kmm, Kaa ) 190 #endif 191 ELSE !* Read in restart file or set by user 192 CALL rst_read_ssh( Kbb, Kmm, Kaa ) 193 ENDIF 194 ! 185 195 #if defined key_qco 186 196 ! != Quasi-Euerian coordinate case 187 197 ! 188 198 IF( .NOT.l_offline ) CALL dom_qco_init( Kbb, Kmm, Kaa ) 199 #elif defined key_linssh 200 ! != Fix in time : key_linssh case, set through domzgr_substitute.h90 189 201 #else 190 202 ! … … 345 357 IF(lwm) WRITE( numond, namdom ) 346 358 ! 359 #if defined key_linssh 360 ln_linssh = lk_linssh ! overwrite ln_linssh with the logical associated with key_linssh 361 #endif 362 ! 347 363 #if defined key_agrif 348 364 IF( .NOT. Agrif_Root() ) THEN ! AGRIF child, subdivide the Parent timestep … … 371 387 ! 372 388 #if defined key_qco 373 IF( ln_linssh ) CALL ctl_stop( 'STOP','domain: key_qco and ln_linssh = Tare incompatible' )389 IF( ln_linssh ) CALL ctl_stop( 'STOP','domain: key_qco and ln_linssh=T or key_linssh are incompatible' ) 374 390 #endif 375 391 !
Note: See TracChangeset
for help on using the changeset viewer.