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 72 for trunk/NEMO/OPA_SRC/DOM/domain.F90 – NEMO

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

CT : BUGFIX046 : Bug correction in mpp case, use mpp_max(ze1max ... instead of mpp_min(ze1max)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DOM/domain.F90

    r32 r72  
    100100         hv(:,:) = hv(:,:) + fse3v(:,:,jk) * vmask(:,:,jk) 
    101101      END DO 
    102 #else 
     102#elif defined key_dynspg_rl 
    103103      ! Inverse of the local depth 
    104104      hur(:,:) = fse3u(:,:,1)             ! Lower bound : thickness of the first model level 
     
    161161 
    162162      IF(lwp) THEN 
    163          WRITE(numout,*) 'namrun' 
    164          WRITE(numout,*) ' job number                      no        = ', no 
    165          WRITE(numout,*) ' experiment name for output      cexper    = ', cexper 
    166          WRITE(numout,*) ' restart logical                 ln_rstart = ', ln_rstart 
    167          WRITE(numout,*) ' control of time step            nrstdt    = ', nrstdt 
    168          WRITE(numout,*) ' number of the first time step   nit000    = ', nit000 
    169          WRITE(numout,*) ' number of the last time step    nitend    = ', nitend 
    170          WRITE(numout,*) ' initial calendar date aammjj    ndate0    = ', ndate0 
    171          WRITE(numout,*) ' leap year calendar (0/1)        nleapy    = ', nleapy 
    172          WRITE(numout,*) ' initial state output            ninist    = ', ninist 
    173          WRITE(numout,*) ' level of print                  nprint    = ', nprint 
    174          WRITE(numout,*) ' frequency of restart file       nstock    = ', nstock 
    175          WRITE(numout,*) ' frequency of output file        nwrite    = ', nwrite 
    176          WRITE(numout,*) ' runoff option                   nrunoff   = ', nrunoff 
    177          WRITE(numout,*) ' run control (for debugging)     ln_ctl    = ', ln_ctl 
    178       ENDIF 
    179  
    180       l_ctl = ln_ctl .AND. lwp             ! trend control print on the 1st processor only 
    181  
    182       ndastp = ndate0                     ! Assign initial date to current date 
     163         WRITE(numout,*) '        Namelist namrun' 
     164         WRITE(numout,*) '           job number                      no        = ', no 
     165         WRITE(numout,*) '           experiment name for output      cexper    = ', cexper 
     166         WRITE(numout,*) '           restart logical                 ln_rstart = ', ln_rstart 
     167         WRITE(numout,*) '           control of time step            nrstdt    = ', nrstdt 
     168         WRITE(numout,*) '           number of the first time step   nit000    = ', nit000 
     169         WRITE(numout,*) '           number of the last time step    nitend    = ', nitend 
     170         WRITE(numout,*) '           initial calendar date aammjj    ndate0    = ', ndate0 
     171         WRITE(numout,*) '           leap year calendar (0/1)        nleapy    = ', nleapy 
     172         WRITE(numout,*) '           initial state output            ninist    = ', ninist 
     173         WRITE(numout,*) '           level of print                  nprint    = ', nprint 
     174         WRITE(numout,*) '           frequency of restart file       nstock    = ', nstock 
     175         WRITE(numout,*) '           frequency of output file        nwrite    = ', nwrite 
     176         WRITE(numout,*) '           runoff option                   nrunoff   = ', nrunoff 
     177         WRITE(numout,*) '           run control (for debugging)     ln_ctl    = ', ln_ctl 
     178      ENDIF 
     179 
     180      l_ctl = ln_ctl .AND. lwp       ! trend control print on the 1st processor only 
     181 
     182      ndastp = ndate0                ! Assign initial date to current date 
    183183 
    184184 
     
    202202      CASE (  1 )  
    203203         CALL ioconf_calendar('gregorian') 
    204          IF(lwp) WRITE(numout,*)'The IOIPSL calendar is "gregorian", i.e. leap year' 
     204         IF(lwp) WRITE(numout,*) '           The IOIPSL calendar is "gregorian", i.e. leap year' 
    205205      CASE (  0 ) 
    206206         CALL ioconf_calendar('noleap') 
    207          IF(lwp) WRITE(numout,*)'The IOIPSL calendar is "noleap", i.e. no leap year' 
     207         IF(lwp) WRITE(numout,*) '           The IOIPSL calendar is "noleap", i.e. no leap year' 
    208208      CASE ( 30 ) 
    209209         CALL ioconf_calendar('360d') 
    210          IF(lwp) WRITE(numout,*)'The IOIPSL calendar is "360d", i.e. 360 days in a year' 
     210         IF(lwp) WRITE(numout,*) '           The IOIPSL calendar is "360d", i.e. 360 days in a year' 
    211211      END SELECT 
    212212#endif 
     
    227227      END SELECT 
    228228      IF(lwp) THEN 
    229          WRITE(numout,*) ' ' 
    230          WRITE(numout,*) ' nb of days per year      raajj = ', raajj,' days' 
    231          WRITE(numout,*) ' nb of seconds per year   raass = ', raass, ' s' 
    232          WRITE(numout,*) ' nb of seconds per month  rmoss = ', rmoss, ' s' 
     229         WRITE(numout,*) 
     230         WRITE(numout,*) '           nb of days per year      raajj = ', raajj,' days' 
     231         WRITE(numout,*) '           nb of seconds per year   raass = ', raass, ' s' 
     232         WRITE(numout,*) '           nb of seconds per month  rmoss = ', rmoss, ' s' 
    233233      ENDIF 
    234234 
     
    238238 
    239239      IF(lwp) THEN 
    240          WRITE(numout,*) 'namdom' 
    241          WRITE(numout,*) ' ' 
    242          WRITE(numout,*) ' flag read/compute bathymetry   ntopo     = ', ntopo 
    243          WRITE(numout,*) ' minimum thickness of partial   e3zps_min = ', e3zps_min, ' (m)' 
    244          WRITE(numout,*) '    step level                  e3zps_rat = ', e3zps_rat 
    245          WRITE(numout,*) ' flag read/compute coordinates  ngrid     = ', ngrid 
    246          WRITE(numout,*) ' flag write mesh/mask file(s)   nmsh      = ', nmsh 
    247          WRITE(numout,*) '      = 0   no file created                 ' 
    248          WRITE(numout,*) '      = 1   mesh_mask                       ' 
    249          WRITE(numout,*) '      = 2   mesh and mask                   ' 
    250          WRITE(numout,*) '      = 3   mesh_hgr, msh_zgr and mask      ' 
    251          WRITE(numout,*) ' acceleration of converge       nacc      = ', nacc 
    252          WRITE(numout,*) ' asselin time filter parameter  atfp      = ', atfp 
    253          WRITE(numout,*) ' time step                      rdt       = ', rdt 
    254          WRITE(numout,*) ' minimum time step on tracers   rdtmin    = ', rdtmin 
    255          WRITE(numout,*) ' maximum time step on tracers   rdtmax    = ', rdtmax 
    256          WRITE(numout,*) ' depth variation tracer step    rdth      = ', rdth 
     240         WRITE(numout,*) 
     241         WRITE(numout,*) '        Namelist namdom' 
     242         WRITE(numout,*) '           flag read/compute bathymetry   ntopo     = ', ntopo 
     243         WRITE(numout,*) '           minimum thickness of partial   e3zps_min = ', e3zps_min, ' (m)' 
     244         WRITE(numout,*) '              step level                  e3zps_rat = ', e3zps_rat 
     245         WRITE(numout,*) '           flag read/compute coordinates  ngrid     = ', ngrid 
     246         WRITE(numout,*) '           flag write mesh/mask file(s)   nmsh      = ', nmsh 
     247         WRITE(numout,*) '                = 0   no file created                 ' 
     248         WRITE(numout,*) '                = 1   mesh_mask                       ' 
     249         WRITE(numout,*) '                = 2   mesh and mask                   ' 
     250         WRITE(numout,*) '                = 3   mesh_hgr, msh_zgr and mask      ' 
     251         WRITE(numout,*) '           acceleration of converge       nacc      = ', nacc 
     252         WRITE(numout,*) '           asselin time filter parameter  atfp      = ', atfp 
     253         WRITE(numout,*) '           time step                      rdt       = ', rdt 
     254         WRITE(numout,*) '           minimum time step on tracers   rdtmin    = ', rdtmin 
     255         WRITE(numout,*) '           maximum time step on tracers   rdtmax    = ', rdtmax 
     256         WRITE(numout,*) '           depth variation tracer step    rdth      = ', rdth 
    257257         IF( lk_ice_lim ) THEN 
    258             WRITE(numout,*) ' ice model coupling frequency   nfice  = ', nfice 
     258            WRITE(numout,*) '           ice model coupling frequency      nfice  = ', nfice 
    259259            nfbulk = nfice 
    260260         ENDIF 
    261          WRITE(numout,*) ' bulk computation frequency     nfbulk = ', nfbulk, ' = nfice if ice model used' 
    262          WRITE(numout,*) ' flag closed sea or not         nclosea= ', nclosea 
    263  
     261         WRITE(numout,*) '           bulk computation frequency       nfbulk  = ', nfbulk, ' = nfice if ice model used' 
     262         WRITE(numout,*) '           flag closed sea or not           nclosea = ', nclosea 
    264263      ENDIF 
    265264 
     
    271270      READ  ( numnam, namcla ) 
    272271      IF(lwp) THEN 
    273          WRITE(numout,*) ' namcla' 
    274          WRITE(numout,*) ' cross land advection        n_cla           = ',n_cla 
     272         WRITE(numout,*) 
     273         WRITE(numout,*) '        Namelist namcla' 
     274         WRITE(numout,*) '           cross land advection        n_cla        = ',n_cla 
    275275      ENDIF 
    276276 
     
    307307      IF( lk_mpp )   CALL mpp_min( ze1min )   ! min over the global domain 
    308308      IF( lk_mpp )   CALL mpp_min( ze2min ) 
    309       IF( lk_mpp )   CALL mpp_min( ze1max ) 
    310       IF( lk_mpp )   CALL mpp_min( ze2max ) 
     309      IF( lk_mpp )   CALL mpp_max( ze1max )   ! max over the global domain 
     310      IF( lk_mpp )   CALL mpp_max( ze2max ) 
    311311 
    312312      iloc  = MINLOC( e1t(:,:), mask = tmask(:,:,1) == 1.e0 ) 
Note: See TracChangeset for help on using the changeset viewer.