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 3897 for branches/2013/dev_r3411_CNRS4_IOCRS/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcini_my_trc.F90 – NEMO

Ignore:
Timestamp:
2013-05-02T16:29:49+02:00 (11 years ago)
Author:
cetlod
Message:

2013/dev_r3411_CNRS4_IOCRS: 2nd step create a new configuration with age tracer ; starting point for TOP coarsening

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3411_CNRS4_IOCRS/NEMOGCM/NEMO/TOP_SRC/MY_TRC/trcini_my_trc.F90

    r2787 r3897  
    4444      IF(lwp) WRITE(numout,*) ' trc_ini_my_trc: initialisation of MY_TRC model' 
    4545      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' 
     46 
     47!! BUG in s-coordinate this does not work! 
     48      ! deepest/shallowest W level Above/Below age_depth 
     49      nlb_age = MINLOC( gdepw_0, mask = gdepw_0 > age_depth, dim = 1 )   ! shallowest W level Below age_depth 
     50                                                                         !  = shallowest T level wholly below age_depth 
     51      nl_age = nlb_age - 1                                               ! deepest    W level Above age_depth 
     52                                                                         !  = T level surrounding age_depth 
     53      nla_age = nl_age - 1                                               ! deepest    T level wholly above age_depth 
     54      frac_kill_age = (age_depth - gdepw_0(nl_age))/e3t_0(nl_age)         ! fraction of level nl_age above age_depth 
     55      frac_add_age = 1._wp -  frac_kill_age                              ! fraction of level nl_age below age_depth 
     56!! end bug 
     57 
     58      rryear = 1._wp / ( nyear_len(1) * rday ) 
    4659       
    4760      IF( .NOT. ln_rsttr ) trn(:,:,:,jp_myt0:jp_myt1) = 0. 
Note: See TracChangeset for help on using the changeset viewer.