New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2517 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP – NEMO

Ignore:
Timestamp:
2010-12-23T17:34:46+01:00 (14 years ago)
Author:
cetlod
Message:

v3.3beta:Ensure restartability of ORCA2_OFF_PISCES & define lk_offline flag for OFFLINE mode

Location:
branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP/trcadv.F90

    r2402 r2517  
    6969#if ! defined key_pisces 
    7070      IF( neuler == 0 .AND. kt == nit000 ) THEN     ! at nit000 
    71          r2dt(:) =  rdttra(:) * FLOAT(nn_dttrc)          ! = rdtra (restarting with Euler time stepping) 
     71         r2dt(:) =  rdttrc(:)           ! = rdttrc (restarting with Euler time stepping) 
    7272      ELSEIF( kt <= nit000 + nn_dttrc ) THEN          ! at nit000 or nit000+1 
    73          r2dt(:) = 2. * rdttra(:) * FLOAT(nn_dttrc)      ! = 2 rdttra (leapfrog) 
     73         r2dt(:) = 2. * rdttrc(:)       ! = 2 rdttrc (leapfrog) 
    7474      ENDIF 
    7575#else 
    76       r2dt(:) =  rdttra(:) * FLOAT(nn_dttrc)          ! = rdtra (restarting with Euler time stepping) 
     76      r2dt(:) =  rdttrc(:)              ! = rdttrc (for PISCES use Euler time stepping) 
    7777#endif 
    7878 
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP/trcbbl.F90

    r2287 r2517  
    5656      !!---------------------------------------------------------------------- 
    5757 
    58 #if ! defined key_offline 
    59       ! Online coupling with dynamics  : Computation of bbl coef and bbl transport 
    60       ! Offline coupling with dynamics : Read bbl coef and bbl transport from input files 
    61       CALL bbl( kt, 'TRC' ) 
    62       l_bbl = .FALSE.  
    63 #endif 
     58      IF( .NOT. lk_offline ) THEN 
     59         CALL bbl( kt, 'TRC' )         ! Online coupling with dynamics  : Computation of bbl coef and bbl transport 
     60         l_bbl = .FALSE.               ! Offline coupling with dynamics : Read bbl coef and bbl transport from input files 
     61      ENDIF 
    6462 
    6563      IF( l_trdtrc )  THEN 
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP/trcnxt.F90

    r2287 r2517  
    111111 
    112112      ! set time step size (Euler/Leapfrog) 
    113       IF( neuler == 0 .AND. kt ==  nit000) THEN  ;  r2dt(:) =     rdttra(:) * FLOAT( nn_dttrc )  ! at nit000             (Euler) 
    114       ELSEIF( kt <= nit000 + 1 )           THEN  ;  r2dt(:) = 2.* rdttra(:) * FLOAT( nn_dttrc )  ! at nit000 or nit000+1 (Leapfrog) 
     113      IF( neuler == 0 .AND. kt ==  nit000) THEN  ;  r2dt(:) =     rdttrc(:)   ! at nit000             (Euler) 
     114      ELSEIF( kt <= nit000 + 1 )           THEN  ;  r2dt(:) = 2.* rdttrc(:)   ! at nit000 or nit000+1 (Leapfrog) 
    115115      ENDIF 
    116116 
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP/trcsbc.F90

    r2287 r2517  
    8080      IF( l_trdtrc ) ALLOCATE( ztrtrd(jpi,jpj,jpk) ) 
    8181 
    82 #if ! defined key_offline 
    83       ! Concentration dilution effect on tracer due to evaporation, precipitation, and river runoff 
    84       IF( lk_vvl ) THEN                      ! volume variable 
    85          zemps(:,:) = emps(:,:) - emp(:,:)    
     82      IF( lk_offline ) THEN          ! emps in dynamical files contains emps - rnf 
     83         zemps(:,:) = emps(:,:)   
     84      ELSE                           ! Concentration dilution effect on tracer due to evaporation, precipitation, and river runoff 
     85         IF( lk_vvl ) THEN                      ! volume variable 
     86            zemps(:,:) = emps(:,:) - emp(:,:)    
    8687!!ch         zemps(:,:) = 0. 
    87       ELSE                                   ! linear free surface 
    88          IF( ln_rnf ) THEN  ;  zemps(:,:) = emps(:,:) - rnf(:,:)   !  E-P-R 
    89          ELSE               ;  zemps(:,:) = emps(:,:) 
     88         ELSE                                   ! linear free surface 
     89            IF( ln_rnf ) THEN  ;  zemps(:,:) = emps(:,:) - rnf(:,:)   !  E-P-R 
     90            ELSE               ;  zemps(:,:) = emps(:,:) 
     91            ENDIF  
    9092         ENDIF  
    9193      ENDIF  
    92 #else 
    93       ! emps in dynamical files contains emps - rnf 
    94       IF( lk_vvl ) THEN   ;   zemps(:,:) = 0.         ! No concentration/dilution effect  
    95       ELSE                ;   zemps(:,:) = emps(:,:)  ! emps -rnf  
    96       ENDIF 
    97 #endif 
    9894 
    9995      ! 0. initialization 
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP/trctrp.F90

    r2431 r2517  
    1818   USE trabbl          ! bottom boundary layer               (trc_bbl routine) 
    1919   USE trcbbl          ! bottom boundary layer               (trc_bbl routine) 
    20 #if ! defined key_offline 
    2120   USE zdfkpp          ! KPP non-local tracer fluxes         (trc_kpp routine) 
    22 #endif 
    2321   USE trcdmp          ! internal damping                    (trc_dmp routine) 
    2422   USE trcldf          ! lateral mixing                      (trc_ldf routine) 
     
    6765                                CALL trc_adv( kstp )            ! horizontal & vertical advection  
    6866                                CALL trc_ldf( kstp )            ! lateral mixing 
    69 #if ! defined key_offline 
    70          IF( lk_zdfkpp )        CALL trc_kpp( kstp )            ! KPP non-local tracer fluxes 
    71 #endif 
     67         IF( .NOT. lk_offline .AND. lk_zdfkpp )    & 
     68            &                   CALL trc_kpp( kstp )            ! KPP non-local tracer fluxes 
    7269#if defined key_agrif 
    7370         IF(.NOT. Agrif_Root()) CALL Agrif_Sponge_trc           ! tracers sponge 
     
    8178      ELSE                                               ! 1D vertical configuration 
    8279                                CALL trc_sbc( kstp )            ! surface boundary condition 
    83 #if ! defined key_offline 
    84           IF( lk_zdfkpp )       CALL trc_kpp( kstp )            ! KPP non-local tracer fluxes 
    85 #endif 
     80         IF( .NOT. lk_offline .AND. lk_zdfkpp )    & 
     81            &                   CALL trc_kpp( kstp )            ! KPP non-local tracer fluxes 
    8682                                CALL trc_zdf( kstp )            ! vertical mixing and after tracer fields 
    8783                                CALL trc_nxt( kstp )            ! tracer fields at next time step      
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/TRP/trczdf.F90

    r2476 r2517  
    6565#if ! defined key_pisces 
    6666      IF( neuler == 0 .AND. kt == nit000 ) THEN     ! at nit000 
    67          r2dt(:) =  rdttra(:) * FLOAT(nn_dttrc)          ! = rdtra (restarting with Euler time stepping) 
     67         r2dt(:) =  rdttrc(:)           ! = rdttrc (restarting with Euler time stepping) 
    6868      ELSEIF( kt <= nit000 + nn_dttrc ) THEN          ! at nit000 or nit000+1 
    69          r2dt(:) = 2. * rdttra(:) * FLOAT(nn_dttrc)      ! = 2 rdttra (leapfrog) 
     69         r2dt(:) = 2. * rdttrc(:)       ! = 2 rdttrc (leapfrog) 
    7070      ENDIF 
    7171#else 
    72       r2dt(:) =  rdttra(:) * FLOAT(nn_dttrc)          ! = rdtra (restarting with Euler time stepping) 
     72      r2dt(:) =  rdttrc(:)              ! = rdttrc (for PISCES use Euler time stepping) 
    7373#endif 
    7474 
Note: See TracChangeset for help on using the changeset viewer.