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 7192 for branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zpoc.F90 – NEMO

Ignore:
Timestamp:
2016-11-04T12:23:02+01:00 (8 years ago)
Author:
cetlod
Message:

new top interface : minor bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zpoc.F90

    r7162 r7192  
    529529      IF (jcpoc > 1) THEN 
    530530         ! 
    531          remindelta = log(4. * 1000. ) / float(jcpoc-1) 
    532          reminup = 1./ 400. * exp(remindelta) 
     531         remindelta = LOG(4. * 1000. ) / REAL(jcpoc-1, wp) 
     532         reminup = 1./ 400. * EXP(remindelta) 
    533533         ! 
    534534         ! Discretization based on incomplete gamma functions 
     
    540540         reminp(1) = gamain(reminup, rshape+1.0, ifault) * xremip / alphan(1) 
    541541         DO jn = 2, jcpoc-1 
    542             reminup = 1./ 400. * exp(float(jn) * remindelta) 
    543             remindown = 1. / 400. * exp(float(jn-1) * remindelta) 
     542            reminup = 1./ 400. * EXP( REAL(jn, wp) * remindelta) 
     543            remindown = 1. / 400. * EXP( REAL(jn-1, wp) * remindelta) 
    544544            alphan(jn) = gamain(reminup, rshape, ifault) - gamain(remindown, rshape, ifault) 
    545545            reminp(jn) = gamain(reminup, rshape+1.0, ifault) - gamain(remindown, rshape+1.0, ifault) 
    546546            reminp(jn) = reminp(jn) * xremip / alphan(jn) 
    547547         END DO 
    548          remindown = 1. / 400. * exp(float(jcpoc-1) * remindelta) 
     548         remindown = 1. / 400. * EXP( REAL(jcpoc-1, wp) * remindelta) 
    549549         alphan(jcpoc) = 1.0 - gamain(remindown, rshape, ifault) 
    550550         reminp(jcpoc) = 1.0 - gamain(remindown, rshape+1.0, ifault) 
Note: See TracChangeset for help on using the changeset viewer.