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

Changeset 601


Ignore:
Timestamp:
2007-02-20T15:41:10+01:00 (17 years ago)
Author:
opalod
Message:

nemo_v2_bugfix_009 : CT+RB : - add clpas optional argument when calling trd_icp () for the trend jpicpt_zad

  • add interface for trd_icp and declarations of dummy module trd_icp_2d, trd_icp_3d
Location:
trunk/NEMO/OPA_SRC/TRD
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRD/trdicp.F90

    r521 r601  
    701701   !!   Default case :                                         Empty module 
    702702   !!---------------------------------------------------------------------- 
     703   INTERFACE trd_icp 
     704      MODULE PROCEDURE trd_2d, trd_3d 
     705   END INTERFACE 
     706 
    703707CONTAINS 
    704708   SUBROUTINE trd_2d( ptrd2dx, ptrd2dy, ktrd , ctype, clpas )       ! Empty routine 
    705709      REAL, DIMENSION(:,:) ::   ptrd2dx, ptrd2dy 
    706       CHARACTER(len=3), INTENT(in), OPTIONAL ::   clpas     ! number of passage 
     710      INTEGER                     , INTENT(in   ) ::   ktrd         ! tracer trend index 
     711      CHARACTER(len=3)            , INTENT(in   ) ::   ctype        ! momentum ('DYN') or tracers ('TRA') trends 
     712      CHARACTER(len=3), INTENT(in), OPTIONAL ::   clpas             ! number of passage 
    707713      WRITE(*,*) 'trd_2d: You should not have seen this print! error ?', & 
    708714          &       ptrd2dx(1,1), ptrd2dy(1,1), ktrd, ctype, clpas 
     
    710716   SUBROUTINE trd_3d( ptrd3dx, ptrd3dy, ktrd , ctype, clpas )       ! Empty routine 
    711717      REAL, DIMENSION(:,:,:) ::   ptrd3dx, ptrd3dy 
    712       CHARACTER(len=3), INTENT(in), OPTIONAL ::   clpas     ! number of passage 
     718      INTEGER                     , INTENT(in   ) ::   ktrd         ! tracer trend index 
     719      CHARACTER(len=3)            , INTENT(in   ) ::   ctype        ! momentum ('DYN') or tracers ('TRA') trends 
     720      CHARACTER(len=3), INTENT(in), OPTIONAL ::   clpas             ! number of passage 
    713721      WRITE(*,*) 'trd_3d: You should not have seen this print! error ?', & 
    714722          &       ptrd3dx(1,1,1), ptrd3dy(1,1,1), ktrd, ctype, clpas 
  • trunk/NEMO/OPA_SRC/TRD/trdmod.F90

    r597 r601  
    9797            CASE ( jptra_trd_yad )   ;   CALL trd_icp( ptrdx, ptrdy, jpicpt_yad, ctype )   ! y- horiz adv 
    9898            CASE ( jptra_trd_zad )                                                         ! z- vertical adv  
    99                CALL trd_icp( ptrdx, ptrdy, jpicpt_zad, ctype, ccpas )    
    100                ! compute the surface flux condition wn(:,:,1)*tn(:,:,1)                                                                    
     99               CALL trd_icp( ptrdx, ptrdy, jpicpt_zad, ctype, clpas=ccpas )    
     100               ! compute the surface flux condition wn(:,:,1)*tn(:,:,1) 
    101101               z2dx(:,:) = wn(:,:,1)*tn(:,:,1)/fse3t(:,:,1) 
    102102               z2dy(:,:) = wn(:,:,1)*sn(:,:,1)/fse3t(:,:,1) 
Note: See TracChangeset for help on using the changeset viewer.