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

Changeset 287


Ignore:
Timestamp:
2005-09-22T12:42:24+02:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_bugfix_004 : CT : - use the iman variable instead of the parameter jpmois as argument of the flinopen routine when opening the runoff_1m_nomask.nc runoff file

  • runoff reduction for the ORCA2_LIM configuration only
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/SBC/flxrnf.F90

    r247 r287  
    160160 
    161161         ! year, month, day 
    162  
    163          iman  = jpmois 
    164162         i15   = nday / 16 
    165163         imois = nmonth + i15 - 1 
    166          IF( imois == 0 )   imois = iman 
     164         IF( imois == 0 )   imois = jpmois 
    167165         ! Number of days in the month 
    168166         IF( nleapy == 1 .AND. MOD( nyear, 4 ) == 0 ) THEN 
     
    184182 
    185183         IF( kt == nit000 ) THEN 
     184            iman = jpmois 
    186185            CALL flinopen( clname, mig(1), nlci, mjg(1), nlcj,    & 
    187186               &           .false., ipi, ipj, ipk, zlon,        & 
    188                &           zlat, zlev, jpmois, istep, zdate0,   & 
     187               &           zlat, zlev, iman, istep, zdate0,   & 
    189188               &           zdt, numrnf ) 
    190189            !   Title, dimensions and tests 
     
    263262         runoff(:,:) = -( ( 1.e0 - zxy ) * rnfdta(:,:,1) + zxy * rnfdta(:,:,2) ) 
    264263 
    265          ! Runoff reduction 
    266          DO jj = 1, jpj 
    267             DO ji = 1, jpi 
    268                IF( gphit(ji,jj) > 40 .AND. gphit(ji,jj) < 65 )   runoff(ji,jj) = 0.85 * runoff(ji,jj) 
     264         ! Runoff reduction only associated to the ORCA2_LIM configuration 
     265         ! when reading the NetCDF file runoff_1m_nomask.nc 
     266         IF( cp_cfg == 'orca' .AND. jp_cfg == 2 )   THEN 
     267            DO jj = 1, jpj 
     268               DO ji = 1, jpi 
     269                  IF( gphit(ji,jj) > 40 .AND. gphit(ji,jj) < 65 )   runoff(ji,jj) = 0.85 * runoff(ji,jj) 
     270               END DO 
    269271            END DO 
    270          END DO 
     272         ENDIF 
    271273          
    272274# endif 
Note: See TracChangeset for help on using the changeset viewer.