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/dtasal.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/dtasal.F90

    r1856 r2051  
    6868       
    6969      !! * Local declarations 
    70       INTEGER ::   ji, jj, jk, jl, jkk            ! dummy loop indicies 
    71       INTEGER ::   imois, iman, i15 , ik          ! temporary integers 
    72       INTEGER ::   ierror 
     70      
     71      INTEGER ::   ji, jj, jk, jl, jkk   ! dummy loop indicies 
     72      INTEGER ::   & 
     73           imois, iman, i15, ik           ! temporary integers 
     74      INTEGER            :: ierror 
    7375#if defined key_tradmp 
    74       INTEGER ::   il0, il1, ii0, ii1, ij0, ij1   ! temporary integers 
    75 #endif 
    76       REAL(wp)::   zxy, zl 
     76      INTEGER ::   & 
     77          il0, il1, ii0, ii1, ij0, ij1   ! temporary integers          
     78#endif 
     79      REAL(wp) ::   zxy, zl 
    7780#if defined key_orca_lev10 
    78       INTEGER ::   ikr, ikw, ikt, jjk  
    79       REAL(wp)::   zfac 
    80 #endif 
    81       REAL(wp), DIMENSION(jpk) ::   zsaldta            ! auxiliary array for interpolation 
    82       CHARACTER(len=100)       :: cn_dir          ! Root directory for location of ssr files 
    83       TYPE(FLD_N)              :: sn_sal 
    84       LOGICAL , SAVE           :: linit_sal = .FALSE. 
     81      INTEGER   :: ikr, ikw, ikt, jjk 
     82      REAL(wp)  :: zfac 
     83#endif 
     84      REAL(wp), DIMENSION(jpk) ::   & 
     85          zsaldta            ! auxiliary array for interpolation 
     86      CHARACTER(len=100) :: cn_dir          ! Root directory for location of ssr files 
     87      TYPE(FLD_N)        :: sn_sal 
     88      LOGICAL , SAVE     :: linit_sal = .FALSE. 
    8589      !!---------------------------------------------------------------------- 
    8690      NAMELIST/namdta_sal/cn_dir,sn_sal 
     
    110114             CALL ctl_stop( 'dta_sal: unable to allocate sf_sal structure' )   ;   RETURN 
    111115         ENDIF 
    112 #if defined key_orca_lev10 
    113          ALLOCATE( sf_sal(1)%fnow(jpi,jpj,jpkdta  ) ) 
    114          ALLOCATE( sf_sal(1)%fdta(jpi,jpj,jpkdta,2) ) 
    115 #else 
    116          ALLOCATE( sf_sal(1)%fnow(jpi,jpj,jpk  ) ) 
     116         ALLOCATE( sf_sal(1)%fnow(jpi,jpj,jpk) ) 
    117117         ALLOCATE( sf_sal(1)%fdta(jpi,jpj,jpk,2) ) 
    118 #endif 
    119118 
    120119         ! fill sf_sal with sn_sal and control print 
Note: See TracChangeset for help on using the changeset viewer.