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 454 for trunk/NEMO/OPA_SRC/DOM/domstp.F90 – NEMO

Ignore:
Timestamp:
2006-05-10T18:47:31+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_047:RB: re-organization of coordinate definition, scale factors are now 3d by default, include file for partial steps has been removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DOM/domstp.F90

    r247 r454  
    77   !!---------------------------------------------------------------------- 
    88   !!   dom_stp        : ocean time domain initialization 
     9   !!---------------------------------------------------------------------- 
     10   !! History : 
     11   !!        !  90-10  (O. Marti)  Original code 
     12   !!        !  96-01  (G. Madec)  terrain following coordinates 
     13   !!   8.5  !  02-08  (G. Madec)  F90: Free form and module 
    914   !!---------------------------------------------------------------------- 
    1015   !! * Modules used 
     
    2429   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    2530   !! $Header$  
    26    !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
     31   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    2732   !!---------------------------------------------------------------------- 
    2833 
     
    5661      !! References : 
    5762      !!      Bryan, K., 1984, J. Phys. Oceanogr., 14, 666-673. 
    58       !! 
    59       !! History : 
    60       !!        !  90-10  (O. Marti)  Original code 
    61       !!        !  96-01  (G. Madec)  terrain following coordinates 
    62       !!   8.5  !  02-08  (G. Madec)  F90: Free form and module 
    6363      !!---------------------------------------------------------------------- 
    64       !! * Local declarations 
    6564      INTEGER ::   jk              ! dummy loop indice 
    6665      !!---------------------------------------------------------------------- 
     
    7776      atfp1 = 1. - 2. * atfp 
    7877 
    79  
    8078      SELECT CASE ( nacc ) 
    8179 
     
    9088            IF(lwp) WRITE(numout,*)'               accelerating the convergence' 
    9189            IF(lwp) WRITE(numout,*)'               dynamics time step = ', rdt/3600., ' hours' 
    92 #if defined key_s_coord 
    93             IF( rdtmin /= rdtmax ) THEN 
     90            IF( ln_sco .AND. rdtmin /= rdtmax ) THEN 
    9491               IF(lwp) WRITE(numout,cform_err) 
    9592               IF(lwp) WRITE(numout,*)' depth dependent acceleration of & 
     
    9794               nstop = nstop + 1 
    9895            ENDIF 
    99 #endif 
    100 #if defined key_partial_steps 
    101             IF( rdtmin /= rdtmax ) THEN 
    102                IF(lwp) WRITE(numout,cform_err) 
    103                IF(lwp) WRITE(numout,*)' depth dependent acceleration of & 
    104                                       &convergence not implemented for partial steps case' 
    105                nstop = nstop + 1 
    106             ENDIF 
    107 #endif 
    10896            IF(lwp) WRITE(numout,*)'         tracers   time step :  dt (hours)  level' 
    10997 
    11098            DO jk = 1, jpk 
    111                IF( fsdept(1,1,jk) <= rdth ) rdttra(jk) = rdtmin 
    112                IF( fsdept(1,1,jk) >  rdth ) THEN 
     99               IF( gdept_0(jk) <= rdth ) rdttra(jk) = rdtmin 
     100               IF( gdept_0(jk) >  rdth ) THEN 
    113101                  rdttra(jk) = rdtmin + ( rdtmax - rdtmin )   & 
    114                                       * ( EXP( ( fsdept(1,1,jk ) - rdth ) / rdth ) - 1. )   & 
    115                                       / ( EXP( ( fsdept(1,1,jpk) - rdth ) / rdth ) - 1. ) 
     102                                      * ( EXP( ( gdept_0(jk ) - rdth ) / rdth ) - 1. )   & 
     103                                      / ( EXP( ( gdept_0(jpk) - rdth ) / rdth ) - 1. ) 
    116104               ENDIF 
    117                IF(lwp) WRITE(numout,9200) rdttra(jk)/3600., jk 
     105               IF(lwp) WRITE(numout,"(36x,f5.2,5x,i3)") rdttra(jk)/3600., jk 
    118106            END DO   
    119  9200       FORMAT(36x,f5.2,'     ',i3) 
    120107 
    121108         CASE DEFAULT              ! E R R O R  
Note: See TracChangeset for help on using the changeset viewer.