Changeset 7485
- Timestamp:
- 2016-12-12T09:33:37+01:00 (8 years ago)
- Location:
- branches/2016/dev_merge_2016/NEMOGCM
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_merge_2016/NEMOGCM/CONFIG/ORCA2_OFF_PISCES/cpp_ORCA2_OFF_PISCES.fcm
r7403 r7485 1 bld::tool::fppkeys key_trabbl key_top key_ offline key_iomput key_mpp_mpi1 bld::tool::fppkeys key_trabbl key_top key_iomput key_mpp_mpi -
branches/2016/dev_merge_2016/NEMOGCM/CONFIG/ORCA2_OFF_TRC/cpp_ORCA2_OFF_TRC.fcm
r7445 r7485 1 bld::tool::fppkeys key_trabbl key_top key_ offline key_iomput key_mpp_mpi1 bld::tool::fppkeys key_trabbl key_top key_iomput key_mpp_mpi -
branches/2016/dev_merge_2016/NEMOGCM/CONFIG/WAD_TEST_CASES/MY_SRC/domain.F90
r7467 r7485 179 179 ELSE != time varying : initialize before/now/after variables 180 180 ! 181 IF( .NOT.l k_offline ) CALL dom_vvl_init181 IF( .NOT.l_offline ) CALL dom_vvl_init 182 182 ! 183 183 ENDIF -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/NST_SRC/agrif_opa_interp.F90
r6140 r7485 9 9 !! 3.6 ! 2014-09 (R. Benshila) 10 10 !!---------------------------------------------------------------------- 11 #if defined key_agrif && ! defined key_offline11 #if defined key_agrif 12 12 !!---------------------------------------------------------------------- 13 13 !! 'key_agrif' AGRIF zoom 14 !! NOT 'key_offline' NO off-line tracers15 14 !!---------------------------------------------------------------------- 16 15 !! Agrif_tra : -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/NST_SRC/agrif_opa_sponge.F90
r6140 r7485 8 8 !! History : 9 9 !!---------------------------------------------------------------------- 10 #if defined key_agrif && ! defined key_offline10 #if defined key_agrif 11 11 USE par_oce 12 12 USE oce -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/NST_SRC/agrif_opa_update.F90
r6140 r7485 3 3 4 4 MODULE agrif_opa_update 5 #if defined key_agrif && ! defined key_offline5 #if defined key_agrif 6 6 USE par_oce 7 7 USE oce -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/NST_SRC/agrif_user.F90
r7421 r7485 80 80 CALL agrif_nemo_init 81 81 CALL Agrif_InitValues_cont_dom 82 # if ! defined key_offline83 82 CALL Agrif_InitValues_cont 84 # endif85 83 # if defined key_top 86 84 CALL Agrif_InitValues_cont_top … … 154 152 END SUBROUTINE agrif_declare_var_dom 155 153 156 157 # if ! defined key_offline158 154 159 155 SUBROUTINE Agrif_InitValues_cont … … 464 460 ! 465 461 END SUBROUTINE agrif_declare_var 466 # endif467 462 468 463 # if defined key_lim2 … … 699 694 700 695 IF( check_namelist ) THEN 701 # if defined key_offline702 696 ! Check time steps 703 697 IF( NINT(Agrif_Rhot()) * NINT(rdt) .NE. Agrif_Parent(rdt) ) THEN … … 742 736 ENDIF 743 737 ENDIF 744 # endif745 738 ! Check passive tracer cell 746 739 IF( nn_dttrc .NE. 1 ) THEN -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OFF_SRC/nemogcm.F90
r7421 r7485 17 17 USE dom_oce ! ocean space domain variables 18 18 USE oce ! dynamics and tracers variables 19 USE trc_oce ! Shared ocean/passive tracers variables 19 20 USE c1d ! 1D configuration 20 21 USE domain ! domain initialization from coordinate & bathymetry (dom_init routine) … … 199 200 jpk = jpkglo 200 201 ! 202 ! 203 l_offline = .true. ! passive tracers are run offline 204 ! 201 205 ! !--------------------------------------------! 202 206 ! ! set communicator & select the local node ! -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/DOM/daymod.F90
r7421 r7485 26 26 USE phycst ! physical constants 27 27 USE ioipsl , ONLY : ymds2ju ! for calendar 28 USE trc_oce , ONLY : l k_offline ! offline flag28 USE trc_oce , ONLY : l_offline ! offline flag 29 29 ! 30 30 USE in_out_manager ! I/O manager … … 81 81 ndt05 = NINT( 0.5 * rdt ) 82 82 83 IF( .NOT. l k_offline ) CALL day_rst( nit000, 'READ' )83 IF( .NOT. l_offline ) CALL day_rst( nit000, 'READ' ) 84 84 85 85 ! set the calandar from ndastp (read in restart file and namelist) … … 273 273 ENDIF 274 274 275 IF( .NOT. l k_offline ) CALL rst_opn( kt ) ! Open the restart file if needed and control lrst_oce275 IF( .NOT. l_offline ) CALL rst_opn( kt ) ! Open the restart file if needed and control lrst_oce 276 276 IF( lrst_oce ) CALL day_rst( kt, 'WRITE' ) ! write day restart information 277 277 ! -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/DOM/depth_e3.F90
r7421 r7485 126 126 INTEGER :: jk ! dummy loop indices 127 127 !!---------------------------------------------------------------------- 128 129 128 ! 129 pdepw_1d(1) = 0.0_wp 130 130 pdept_1d(1) = 0.5_wp * pe3w_1d(1) 131 131 DO jk = 2, jpk 132 132 pdepw_1d(jk) = pdepw_1d(jk-1) + pe3t_1d(jk-1) 133 133 pdept_1d(jk) = pdept_1d(jk-1) + pe3w_1d(jk ) … … 152 152 INTEGER :: jk ! dummy loop indices 153 153 !!---------------------------------------------------------------------- 154 155 154 ! 155 pdepw_3d(:,:,1) = 0.0_wp 156 156 pdept_3d(:,:,1) = 0.5_wp * pe3w_3d(:,:,1) 157 157 DO jk = 2, jpk 158 158 pdepw_3d(:,:,jk) = pdepw_3d(:,:,jk-1) + pe3t_3d(:,:,jk-1) 159 159 pdept_3d(:,:,jk) = pdept_3d(:,:,jk-1) + pe3w_3d(:,:,jk ) -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90
r7421 r7485 40 40 USE dyncor_c1d ! 1D configuration: Coriolis term (cor_c1d routine) 41 41 ! 42 USE trc_oce , ONLY : l_offline ! passive tracers offline flag 43 ! 42 44 USE in_out_manager ! I/O manager 43 45 USE iom ! I/O library … … 178 180 ELSE != time varying : initialize before/now/after variables 179 181 ! 180 IF( .NOT.l k_offline ) CALL dom_vvl_init182 IF( .NOT.l_offline ) CALL dom_vvl_init 181 183 ! 182 184 ENDIF -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra.F90
r7421 r7485 26 26 USE diaptr 27 27 ! 28 USE trc_oce, ONLY: lk_offline ! offline flag29 28 USE in_out_manager ! I/O manager 30 29 USE iom ! I/O module for ehanced bottom friction file … … 352 351 END SELECT 353 352 ! 354 IF( .NOT.lk_offline ) THEN 355 CALL iom_put( "ahtu_2d", ahtu(:,:,1) ) ! surface u-eddy diffusivity coeff. 356 CALL iom_put( "ahtv_2d", ahtv(:,:,1) ) ! surface v-eddy diffusivity coeff. 357 CALL iom_put( "ahtu_3d", ahtu(:,:,:) ) ! 3D u-eddy diffusivity coeff. 358 CALL iom_put( "ahtv_3d", ahtv(:,:,:) ) ! 3D v-eddy diffusivity coeff. 359 ! 353 CALL iom_put( "ahtu_2d", ahtu(:,:,1) ) ! surface u-eddy diffusivity coeff. 354 CALL iom_put( "ahtv_2d", ahtv(:,:,1) ) ! surface v-eddy diffusivity coeff. 355 CALL iom_put( "ahtu_3d", ahtu(:,:,:) ) ! 3D u-eddy diffusivity coeff. 356 CALL iom_put( "ahtv_3d", ahtv(:,:,:) ) ! 3D v-eddy diffusivity coeff. 357 ! 360 358 !!gm : THE IF below is to be checked (comes from Seb) 361 IF( ln_ldfeiv ) THEN 362 CALL iom_put( "aeiu_2d", aeiu(:,:,1) ) ! surface u-EIV coeff. 363 CALL iom_put( "aeiv_2d", aeiv(:,:,1) ) ! surface v-EIV coeff. 364 CALL iom_put( "aeiu_3d", aeiu(:,:,:) ) ! 3D u-EIV coeff. 365 CALL iom_put( "aeiv_3d", aeiv(:,:,:) ) ! 3D v-EIV coeff. 366 ENDIF 359 IF( ln_ldfeiv ) THEN 360 CALL iom_put( "aeiu_2d", aeiu(:,:,1) ) ! surface u-EIV coeff. 361 CALL iom_put( "aeiv_2d", aeiv(:,:,1) ) ! surface v-EIV coeff. 362 CALL iom_put( "aeiu_3d", aeiu(:,:,:) ) ! 3D u-EIV coeff. 363 CALL iom_put( "aeiv_3d", aeiv(:,:,:) ) ! 3D v-EIV coeff. 367 364 ENDIF 368 365 ! -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/TRA/traqsr.F90
r7421 r7485 422 422 ! 423 423 IF(lwp) WRITE(numout,*) ' bio-model light penetration' 424 IF( .NOT.lk_ qsr_bio) CALL ctl_stop( 'No bio model : ln_qsr_bio = true impossible ' )424 IF( .NOT.lk_top ) CALL ctl_stop( 'No bio model : ln_qsr_bio = true impossible ' ) 425 425 ! 426 426 END SELECT -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90
r6352 r7485 13 13 USE oce ! ocean dynamics and tracers variables 14 14 USE dom_oce ! ocean space and time domain variables 15 USE trc_oce, ONLY: l_offline ! ocean space and time domain variables 15 16 USE zdf_oce ! ocean vertical physics 16 17 USE in_out_manager ! I/O manager … … 21 22 USE wrk_nemo ! work arrays 22 23 USE timing ! Timing 23 USE trc_oce, ONLY : lk_offline ! offline flag24 24 25 25 IMPLICIT NONE … … 128 128 END DO 129 129 END DO 130 ! no need to output in offline mode 131 IF( .NOT.lk_offline ) THEN 132 IF ( iom_use("mldr10_1") ) THEN 133 IF( ln_isfcav ) THEN 134 CALL iom_put( "mldr10_1", hmlp - risfdep) ! mixed layer thickness 135 ELSE 136 CALL iom_put( "mldr10_1", hmlp ) ! mixed layer depth 130 ! 131 IF( .NOT.l_offline ) THEN 132 IF( iom_use("mldr10_1") ) THEN 133 IF( ln_isfcav ) THEN ; CALL iom_put( "mldr10_1", hmlp - risfdep) ! mixed layer thickness 134 ELSE ; CALL iom_put( "mldr10_1", hmlp ) ! mixed layer depth 137 135 END IF 138 136 END IF 139 IF ( iom_use("mldkz5") ) THEN 140 IF( ln_isfcav ) THEN 141 CALL iom_put( "mldkz5" , hmld - risfdep ) ! turbocline thickness 142 ELSE 143 CALL iom_put( "mldkz5" , hmld ) ! turbocline depth 137 IF( iom_use("mldkz5") ) THEN 138 IF( ln_isfcav ) THEN ; CALL iom_put( "mldkz5" , hmld - risfdep ) ! turbocline thickness 139 ELSE ; CALL iom_put( "mldkz5" , hmld ) ! turbocline depth 144 140 END IF 145 END 141 ENDIF 146 142 ENDIF 147 143 -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/trc_oce.F90
r7421 r7485 24 24 PUBLIC trc_oce_alloc ! function called by nemogcm.F90 25 25 26 LOGICAL , PUBLIC :: l_co2cpl = .false. !: atmospheric pco2 recieved from oasis 26 LOGICAL , PUBLIC :: l_co2cpl = .false. !: atmospheric pco2 recieved from oasis 27 LOGICAL , PUBLIC :: l_offline = .false. !: offline passive tracers flag 27 28 INTEGER , PUBLIC :: nn_dttrc !: frequency of step on passive tracers 28 29 REAL(wp), PUBLIC :: r_si2 !: largest depth of extinction (blue & 0.01 mg.m-3) (RGB) … … 35 36 !!---------------------------------------------------------------------- 36 37 LOGICAL, PUBLIC, PARAMETER :: lk_top = .TRUE. !: TOP model 37 LOGICAL, PUBLIC, PARAMETER :: lk_qsr_bio = .TRUE. !: bio-model light absorption flag38 38 #else 39 39 !!---------------------------------------------------------------------- … … 41 41 !!---------------------------------------------------------------------- 42 42 LOGICAL, PUBLIC, PARAMETER :: lk_top = .FALSE. !: TOP model 43 LOGICAL, PUBLIC, PARAMETER :: lk_qsr_bio = .FALSE. !: bio-model light absorption flag44 #endif45 #if defined key_offline46 !!----------------------------------------------------------------------47 !! 'key_offline' OFFLINE mode48 !!----------------------------------------------------------------------49 LOGICAL, PUBLIC, PARAMETER :: lk_offline = .TRUE. !: offline flag50 #else51 !!----------------------------------------------------------------------52 !! Default option NO OFFLINE mode53 !!----------------------------------------------------------------------54 LOGICAL, PUBLIC, PARAMETER :: lk_offline = .FALSE. !: offline flag55 #endif56 #if defined key_degrad57 !!----------------------------------------------------------------------58 !! 'key_degrad' Degradation mode59 !!----------------------------------------------------------------------60 LOGICAL, PUBLIC, PARAMETER :: lk_degrad = .TRUE. !: degradation flag61 #else62 !!----------------------------------------------------------------------63 !! Default option NO Degradation mode64 !!----------------------------------------------------------------------65 LOGICAL, PUBLIC, PARAMETER :: lk_degrad = .FALSE. !: degradation flag66 43 #endif 67 44 !!---------------------------------------------------------------------- -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsbc.F90
r7403 r7485 291 291 ! set the number of level over which river runoffs are applied 292 292 ! online configuration : computed in sbcrnf 293 IF( l k_offline ) THEN293 IF( l_offline ) THEN 294 294 nk_rnf(:,:) = 1 295 295 h_rnf (:,:) = gdept_n(:,:,1) -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/TOP_SRC/TRP/trcadv.F90
r7421 r7485 85 85 CALL wrk_alloc( jpi,jpj,jpk, zun, zvn, zwn ) 86 86 ! !== effective transport ==! 87 IF( l k_offline ) THEN87 IF( l_offline ) THEN 88 88 zun(:,:,:) = un(:,:,:) ! effective transport already in un/vn/wn 89 89 zvn(:,:,:) = vn(:,:,:) -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/TOP_SRC/TRP/trcbbl.F90
r5836 r7485 54 54 IF( nn_timing == 1 ) CALL timing_start('trc_bbl') 55 55 ! 56 IF( .NOT. l k_offline .AND. nn_dttrc == 1 ) THEN56 IF( .NOT. l_offline .AND. nn_dttrc == 1 ) THEN 57 57 CALL bbl( kt, nittrc000, 'TRC' ) ! Online coupling with dynamics : Computation of bbl coef and bbl transport 58 58 l_bbl = .FALSE. ! Offline coupling with dynamics : Read bbl coef and bbl transport from input files -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/TOP_SRC/oce_trc.F90
r7403 r7485 51 51 USE oce , ONLY : sshb => sshb !: sea surface height at t-point [m] 52 52 USE oce , ONLY : ssha => ssha !: sea surface height at t-point [m] 53 #if defined key_offline54 53 USE oce , ONLY : rab_n => rab_n !: local thermal/haline expension ratio at T-points 55 #endif56 54 57 55 !* surface fluxes * -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/TOP_SRC/trcini.F90
r7403 r7485 65 65 ! 66 66 IF(lwp) WRITE(numout,*) 67 IF( ln_rsttr .AND. .NOT. l k_offline ) CALL trc_rst_cal( nit000, 'READ' ) ! calendar67 IF( ln_rsttr .AND. .NOT. l_offline ) CALL trc_rst_cal( nit000, 'READ' ) ! calendar 68 68 IF(lwp) WRITE(numout,*) 69 69 ! … … 93 93 ! Define logical parameter ton control dirunal cycle in TOP 94 94 l_trcdm2dc = ln_dm2dc .OR. ( ln_cpl .AND. ncpl_qsr_freq /= 1 ) 95 l_trcdm2dc = l_trcdm2dc .AND. .NOT. l k_offline95 l_trcdm2dc = l_trcdm2dc .AND. .NOT. l_offline 96 96 IF( l_trcdm2dc .AND. lwp ) CALL ctl_warn( 'Coupling with passive tracers and used of diurnal cycle.', & 97 97 & 'Computation of a daily mean shortwave for some biogeochemical models ' ) -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/TOP_SRC/trcnam.F90
r7403 r7485 51 51 INTEGER :: jn ! dummy loop indice 52 52 ! 53 IF( .NOT.l k_offline ) CALL trc_nam_run ! Parameters of the run53 IF( .NOT.l_offline ) CALL trc_nam_run ! Parameters of the run 54 54 ! 55 55 CALL trc_nam_trc ! passive tracer informations -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/TOP_SRC/trcrst.F90
r7055 r7485 52 52 !!---------------------------------------------------------------------- 53 53 ! 54 IF( l k_offline ) THEN54 IF( l_offline ) THEN 55 55 IF( kt == nittrc000 ) THEN 56 56 lrst_trc = .FALSE. … … 147 147 lrst_trc = .FALSE. 148 148 #endif 149 IF( l k_offline .AND. ln_rst_list ) THEN149 IF( l_offline .AND. ln_rst_list ) THEN 150 150 nrst_lst = nrst_lst + 1 151 151 nitrst = nstocklist( nrst_lst ) … … 219 219 ENDIF 220 220 ! 221 IF( l k_offline ) THEN221 IF( l_offline ) THEN 222 222 ! ! set the date in offline mode 223 223 IF( ln_rsttr .AND. nn_rsttr == 2 ) THEN -
branches/2016/dev_merge_2016/NEMOGCM/NEMO/TOP_SRC/trcwri.F90
r7403 r7485 46 46 IF( nn_timing == 1 ) CALL timing_start('trc_wri') 47 47 ! 48 IF( l k_offline .AND. kt == nittrc000 .AND. lwp ) THEN ! WRITE root name in date.file for use by postpro48 IF( l_offline .AND. kt == nittrc000 .AND. lwp ) THEN ! WRITE root name in date.file for use by postpro 49 49 CALL dia_nam( clhstnam, nn_writetrc,' ' ) 50 50 CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) -
branches/2016/dev_merge_2016/NEMOGCM/TOOLS/DOMAINcfg/src/trc_oce.f90
r6951 r7485 40 40 !!---------------------------------------------------------------------- 41 41 LOGICAL, PUBLIC, PARAMETER :: lk_top = .FALSE. !: TOP model 42 LOGICAL, PUBLIC, PARAMETER :: lk_qsr_bio = .FALSE. !: bio-model light absorption flag 43 44 45 46 47 48 49 50 !!---------------------------------------------------------------------- 51 !! Default option NO OFFLINE mode 52 !!---------------------------------------------------------------------- 53 LOGICAL, PUBLIC, PARAMETER :: lk_offline = .FALSE. !: offline flag 54 55 56 57 58 59 60 61 !!---------------------------------------------------------------------- 62 !! Default option NO Degradation mode 63 !!---------------------------------------------------------------------- 64 LOGICAL, PUBLIC, PARAMETER :: lk_degrad = .FALSE. !: degradation flag 42 65 43 66 44 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.