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 2051 for branches/DEV_r1784_3DF/NEMO/OPA_SRC/DTA/dtatem.F90 – NEMO

Ignore:
Timestamp:
2010-08-13T10:47:35+02:00 (14 years ago)
Author:
cbricaud
Message:

corrections to use on-the-fly interpolation with 3D files in fldread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r1784_3DF/NEMO/OPA_SRC/DTA/dtatem.F90

    r1856 r2051  
    7373 
    7474      !! * Local declarations 
    75       INTEGER ::   ji, jj, jk, jl, jkk            ! dummy loop indicies 
    76       INTEGER ::   imois, iman, i15 , ik          ! temporary integers 
    77       INTEGER ::   ierror 
     75      INTEGER ::   ji, jj, jk, jl, jkk       ! dummy loop indicies 
     76      INTEGER ::   & 
     77        imois, iman, i15 , ik      ! temporary integers 
     78      INTEGER            :: ierror 
    7879#if defined key_tradmp 
    79       INTEGER ::   il0, il1, ii0, ii1, ij0, ij1   ! temporary integers 
    80 #endif 
    81       REAL(wp)::   zxy, zl 
    82 #if defined key_orca_lev10 
    83       INTEGER ::   ikr, ikw, ikt, jjk  
    84       REAL(wp)::   zfac 
    85 #endif 
    86       REAL(wp), DIMENSION(jpk) ::   ztemdta            ! auxiliary array for interpolation 
    87       CHARACTER(len=100)       ::   cn_dir             ! Root directory for location of ssr files 
    88       TYPE(FLD_N)              ::   sn_tem 
    89       LOGICAL , SAVE           ::   linit_tem = .FALSE. 
     80      INTEGER ::   & 
     81         il0, il1, ii0, ii1, ij0, ij1   ! temporary integers 
     82#endif 
     83      REAL(wp) ::   zxy, zl 
     84#if defined key_orca_lev10 
     85      !!!REAL(wp), DIMENSION(jpi,jpj,jpkdta,2) :: ztem 
     86      INTEGER   :: ikr, ikw, ikt, jjk  
     87      REAL(wp)  :: zfac 
     88#endif 
     89      REAL(wp), DIMENSION(jpk) ::   & 
     90         ztemdta            ! auxiliary array for interpolation 
     91      CHARACTER(len=100) :: cn_dir          ! Root directory for location of ssr files 
     92      TYPE(FLD_N)        :: sn_tem 
     93      LOGICAL , SAVE     :: linit_tem = .FALSE. 
    9094      !!---------------------------------------------------------------------- 
    9195      NAMELIST/namdta_tem/cn_dir,sn_tem 
     
    103107         sn_tem = FLD_N( 'temperature',  -1.  ,  'votemper',  .false.   , .true.  ,  'yearly'  , ''       , ''         ) 
    104108 
    105          REWIND( numnam )            ! ... read in namlist namdta_tem  
     109         REWIND( numnam )         ! ... read in namlist namdta_tem  
    106110         READ( numnam, namdta_tem )  
    107111 
    108          IF(lwp) THEN                ! control print 
     112         IF(lwp) THEN              ! control print 
    109113            WRITE(numout,*) 
    110114            WRITE(numout,*) 'dta_tem : Temperature Climatology ' 
     
    117121 
    118122#if defined key_orca_lev10 
    119          ALLOCATE( sf_tem(1)%fnow(jpi,jpj,jpkdta  ) ) 
     123         ALLOCATE( sf_tem(1)%fnow(jpi,jpj,jpkdta ) 
    120124         ALLOCATE( sf_tem(1)%fdta(jpi,jpj,jpkdta,2) ) 
    121125#else 
    122          ALLOCATE( sf_tem(1)%fnow(jpi,jpj,jpk  ) ) 
     126         ALLOCATE( sf_tem(1)%fnow(jpi,jpj,jpk ) 
    123127         ALLOCATE( sf_tem(1)%fdta(jpi,jpj,jpk,2) ) 
    124128#endif 
     
    141145          
    142146#if defined key_tradmp 
    143       IF( cp_cfg == "orca" .AND. jp_cfg == 2 ) THEN 
     147      IF( cp_cfg == "orca"  .AND. jp_cfg == 2 ) THEN 
    144148             
    145149         !                                        ! ======================= 
Note: See TracChangeset for help on using the changeset viewer.