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 99 – NEMO

Changeset 99


Ignore:
Timestamp:
2004-06-25T10:38:42+02:00 (20 years ago)
Author:
opalod
Message:

CT : UPDATE065 : correction when computing the pressure prd in linear cases only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/eosbn2.F90

    r49 r99  
    3838   !! * Share module variables 
    3939   INTEGER , PUBLIC ::   &  !: nameos : ocean physical parameters 
    40       neos          ,    &  !: = 0/1/2 type of eq. of state and Brunt-Vaisala frequ. 
     40      neos      = 0,     &  !: = 0/1/2 type of eq. of state and Brunt-Vaisala frequ. 
    4141      neos_init = 0         !: control flag for initialization 
    4242 
    4343   REAL(wp), PUBLIC ::   &  !: nameos : ocean physical parameters 
    44       ralpha        ,    &  !: thermal expension coeff. (linear equation of state) 
    45       rbeta                 !: saline  expension coeff. (linear equation of state) 
     44      ralpha = 2.0e-4,   &  !: thermal expension coeff. (linear equation of state) 
     45      rbeta  = 7.7e-4       !: saline  expension coeff. (linear equation of state) 
    4646    
    4747   !! * Substitutions 
     
    207207                  zs = psal(ji,jj,jk) 
    208208                  !   ... density and potential volumic mass 
    209                   prd(ji,jj,jk) = (   rbeta  * zs - ralpha * zt - 1. ) * tmask(ji,jj,jk) 
     209                  prd(ji,jj,jk) = (   rbeta  * zs - ralpha * zt ) * tmask(ji,jj,jk) 
    210210               END DO 
    211211            END DO 
     
    392392                  zs = psal(ji,jj,jk) 
    393393                  !   ... density and potential volumic mass 
    394                   prd  (ji,jj,jk) = ( rbeta  * zs - ralpha * zt - 1. ) * tmask(ji,jj,jk) 
     394                  prd  (ji,jj,jk) = ( rbeta  * zs - ralpha * zt ) * tmask(ji,jj,jk) 
    395395                  prhop(ji,jj,jk) = ( rau0 * prd(ji,jj,jk) + rau0 )    * tmask(ji,jj,jk) 
    396396               END DO 
     
    570570            DO ji = 1, fs_jpim1   ! vector opt. 
    571571#endif 
    572                prd(ji,jj) = ( rbeta * psal(ji,jj) - ralpha * ptem(ji,jj) - 1. ) * tmask(ji,jj,1)  
     572               prd(ji,jj) = ( rbeta * psal(ji,jj) - ralpha * ptem(ji,jj) ) * tmask(ji,jj,1)  
    573573            END DO 
    574574            !                                             ! =============== 
     
    790790      ! namelist nameos : ocean physical parameters 
    791791 
    792       ! Default values 
    793       neos   =      0         ! flag of eos used 
    794       ralpha =     2.e-4_wp   ! thermal exp. coef. (linear eos) 
    795       rbeta  =     0.029_wp   ! haline  exp. coef. (linear eos) 
    796  
    797792      ! Read Namelist nameos : equation of state 
    798793      REWIND( numnam ) 
Note: See TracChangeset for help on using the changeset viewer.