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

Ignore:
Timestamp:
2006-09-12T13:03:53+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_064:CE:re-organization of coordinate definition and scale factors

File:
1 edited

Legend:

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

    r343 r497  
    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 
     
    2227#  include "domzgr_substitute.h90" 
    2328   !!---------------------------------------------------------------------- 
    24    !!   OPA 9.0 , LOCEAN-IPSL  (2005) 
    25    !!   $Header$ 
    26    !!   This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 
     29   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
     30   !! $Header$  
     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 
    94                IF(lwp) WRITE(numout,cform_err) 
    95                IF(lwp) WRITE(numout,*)' depth dependent acceleration of & 
    96                                       &convergence not implemented in s-coordinates' 
    97                nstop = nstop + 1 
    98             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 
     90            IF( ln_sco .AND. rdtmin /= rdtmax )   & 
     91                 & CALL ctl_stop ( ' depth dependent acceleration of convergence not implemented in s-coordinates' ) 
    10892            IF(lwp) WRITE(numout,*)'         tracers   time step :  dt (hours)  level' 
    10993 
    11094            DO jk = 1, jpk 
    111                IF( fsdept(1,1,jk) <= rdth ) rdttra(jk) = rdtmin 
    112                IF( fsdept(1,1,jk) >  rdth ) THEN 
     95               IF( gdept_0(jk) <= rdth ) rdttra(jk) = rdtmin 
     96               IF( gdept_0(jk) >  rdth ) THEN 
    11397                  rdttra(jk) = rdtmin + ( rdtmax - rdtmin )   & 
    114                                       * ( EXP( ( fsdept(1,1,jk ) - rdth ) / rdth ) - 1. )   & 
    115                                       / ( EXP( ( fsdept(1,1,jpk) - rdth ) / rdth ) - 1. ) 
     98                                      * ( EXP( ( gdept_0(jk ) - rdth ) / rdth ) - 1. )   & 
     99                                      / ( EXP( ( gdept_0(jpk) - rdth ) / rdth ) - 1. ) 
    116100               ENDIF 
    117                IF(lwp) WRITE(numout,9200) rdttra(jk)/3600., jk 
     101               IF(lwp) WRITE(numout,"(36x,f5.2,5x,i3)") rdttra(jk)/3600., jk 
    118102            END DO   
    119  9200       FORMAT(36x,f5.2,'     ',i3) 
    120103 
    121104         CASE DEFAULT              ! E R R O R  
    122105 
    123             IF(lwp) WRITE(numout,cform_err) 
    124             IF(lwp) WRITE(numout,*) ' nacc value e r r o r, nacc= ',nacc 
    125             IF(lwp) WRITE(numout,*) ' we stop' 
    126             nstop = nstop + 1 
     106            WRITE(ctmp1,*) ' nacc value e r r o r, nacc= ',nacc 
     107            CALL ctl_stop( ctmp1 ) 
    127108 
    128109      END SELECT 
Note: See TracChangeset for help on using the changeset viewer.