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 77 for trunk/NEMO/LIM_SRC/limdia.F90 – NEMO

Ignore:
Timestamp:
2004-04-22T14:49:55+02:00 (20 years ago)
Author:
opalod
Message:

CT : UPDATE051 : Change variable name jeq to njeq and use a new algorithm to compute njeq based on Coriolis value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC/limdia.F90

    r12 r77  
    1212   !!---------------------------------------------------------------------- 
    1313   !! * Modules used 
    14    USE phycst 
    15    USE in_out_manager 
     14   USE phycst          !  
     15   USE par_ice         ! ice parameters 
    1616   USE ice_oce         ! ice variables 
    17    USE daymod 
    18    USE dom_ice 
    19    USE ice 
    20    USE iceini 
    21    USE limistate 
     17   USE daymod          ! 
     18   USE dom_ice         ! 
     19   USE ice             ! 
     20   USE iceini          ! 
     21   USE limistate       ! 
     22   USE in_out_manager  ! I/O manager 
    2223 
    2324   IMPLICIT NONE 
     
    2829 
    2930   !! * Shared module variables 
    30    INTEGER, PUBLIC  ::  & 
     31   INTEGER, PUBLIC  ::  &  !: 
    3132      ntmoy   = 1 ,     &  !: instantaneous values of ice evolution or averaging ntmoy 
    3233      ninfo   = 1          !: frequency of ouputs on file ice_evolu in case of averaging 
    3334 
    3435   !! * Module variables 
    35    INTEGER          ::  & 
    36       nfrinf  = 4          ! number of variables written in one line  
    37   
    38    INTEGER          ::  & 
     36   INTEGER, PARAMETER ::   &  ! Parameters for outputs to files "evolu" 
     37      jpinfmx = 100         ,    &  ! maximum number of key variables 
     38      jpchinf = 5           ,    &  ! ??? 
     39      jpchsep = jpchinf + 2         ! ??? 
     40 
     41   INTEGER ::   & 
     42      nfrinf  = 4 ,     &  ! number of variables written in one line  
    3943      nferme ,          &  ! last time step at which the var. are written on file 
    4044      nvinfo ,          &  ! number of total variables  
    4145      nbvt   ,          &  ! number of time variables 
    4246      naveg                ! number of step for accumulation before averaging 
    43   
    44    REAL(wp), DIMENSION(ninfmx) ::  & 
    45       vinfom               ! temporary working space 
    46  
    47    CHARACTER(len=8) ::  & 
     47 
     48   CHARACTER(len=8) ::   & 
    4849      fmtinf  = '1PE13.5 ' ! format of the output values   
    49  
    50    CHARACTER(len=30) :: & 
     50   CHARACTER(len=30) ::   & 
    5151      fmtw  ,           &  ! formats 
    5252      fmtr  ,           &  ! ??? 
    5353      fmtitr               ! ??? 
    54  
    55    CHARACTER(len=nchsep), DIMENSION(ninfmx) ::   & 
     54   CHARACTER(len=jpchsep), DIMENSION(jpinfmx) ::   & 
    5655      titvar               ! title of key variables 
    57  
    58    REAL(wp) :: & 
    59       epsi06 = 1.e-06 
     56  
     57   REAL(wp) ::   & 
     58      epsi06 = 1.e-06      ! ??? 
     59   REAL(wp), DIMENSION(jpinfmx) ::  & 
     60      vinfom               ! temporary working space 
     61   REAL(wp), DIMENSION(jpi,jpj) ::   & 
     62      aire                 ! masked grid cell area 
    6063 
    6164   !! * Substitutions 
     
    8184       INTEGER  ::   jv,ji, jj   ! dummy loop indices 
    8285       INTEGER  ::   nv          ! indice of variable  
    83        REAL(wp), DIMENSION(ninfmx) ::  &  
     86       REAL(wp), DIMENSION(jpinfmx) ::  &  
    8487          vinfor           ! temporary working space  
    8588       REAL(wp) ::    & 
     
    98101 
    99102       nv = 1  
    100        vinfor(nv) = REAL(numit) 
     103       vinfor(nv) = REAL( numit ) 
    101104       nv = nv + 1 
    102105       vinfor(nv) = nyear 
    103106  
    104107       DO jv = nbvt + 1, nvinfo 
    105           vinfor(jv) = 0.0 
     108          vinfor(jv) = 0.e0 
    106109       END DO 
    107110 
     
    109112       zextent85 = 0.e0 
    110113       ! variables in northern Hemis 
    111        DO jj = jeq, jpjm1 
     114       DO jj = njeq, jpjm1 
    112115          DO ji = fs_2, fs_jpim1   ! vector opt. 
    113116             IF( tms(ji,jj) == 1 ) THEN 
     
    135138      ! variables in southern Hemis 
    136139       nv = nv + 1 
    137        DO jj = 2, jeqm1 
     140       DO jj = 2, njeqm1 
    138141          DO ji = fs_2, fs_jpim1   ! vector opt. 
    139142             IF( tms(ji,jj) == 1 ) THEN 
     
    169172          naveg = 0 
    170173          DO jv = 1, nvinfo 
    171              vinfom(jv)=0.0 
     174             vinfom(jv) = 0.e0 
    172175          END DO 
    173176       ENDIF 
     
    199202       REAL(wp) ::   zxx0, zxx1    ! temporary scalars 
    200203 
    201        CHARACTER(len=nchinf) ::   titinf 
     204       CHARACTER(len=jpchinf) ::   titinf 
    202205       !!------------------------------------------------------------------- 
    203  
    204206 
    205207       ! Read Namelist namicedia 
     
    216218       ENDIF 
    217219 
     220       ! masked grid cell area 
     221       aire(:,:) = area(:,:) * tms(:,:) 
     222 
    218223       ! Titles of ice key variables : 
    219224       nv = 1 
     
    265270 
    266271       ! definition of formats  
    267        WRITE( fmtw  , '(A,I3,A2,I1,A)' )  '(', nfrinf, '(A', nchsep, ','//fmtinf//'))' 
    268        WRITE( fmtr  , '(A,I3,A,I1,A)'  )  '(', nfrinf, '(', nchsep, 'X,'//fmtinf//'))' 
    269        WRITE( fmtitr, '(A,I3,A,I1,A)'  )  '(', nvinfo, 'A', nchinf, ')' 
     272       WRITE( fmtw  , '(A,I3,A2,I1,A)' )  '(', nfrinf, '(A', jpchsep, ','//fmtinf//'))' 
     273       WRITE( fmtr  , '(A,I3,A,I1,A)'  )  '(', nfrinf, '(', jpchsep, 'X,'//fmtinf//'))' 
     274       WRITE( fmtitr, '(A,I3,A,I1,A)'  )  '(', nvinfo, 'A', jpchinf, ')' 
    270275 
    271276       ! opening  "ice_evolu" file 
    272        irecl = ( nchinf + 1 ) * nvinfo  
     277       irecl = ( jpchinf + 1 ) * nvinfo  
    273278       OPEN( numevo_ice, file='ice.evolu', status='unknown', RECL = irecl) 
    274279       OPEN( numevo_ice, file='ice.evolu', status='unknown') 
     
    276281       !- ecriture de 2 lignes d''entete : 
    277282       WRITE(numevo_ice,1000) fmtr, fmtw, fmtitr, nvinfo, ntot, 0, nfrinf 
    278        zxx0 = 0.001 * REAL(ninfo) 
    279        zxx1 = 0.001 * REAL(ndeb) 
    280        WRITE(numevo_ice,1111) REAL(nchinf), 0., zxx1, zxx0, 0., 0., 0 
     283       zxx0 = 0.001 * REAL( ninfo ) 
     284       zxx1 = 0.001 * REAL( ndeb  ) 
     285       WRITE(numevo_ice,1111) REAL(jpchinf), 0., zxx1, zxx0, 0., 0., 0 
    281286 
    282287       !- ecriture de 2 lignes de titre : 
     
    289294       !--preparation de "titvar" pour l''ecriture parmi les valeurs numeriques : 
    290295       DO  jv = 2 , nvinfo 
    291           titinf     = titvar(jv)(:nchinf) 
     296          titinf     = titvar(jv)(:jpchinf) 
    292297          titvar(jv) = '  '//titinf 
    293298       END DO 
Note: See TracChangeset for help on using the changeset viewer.