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 14072 for NEMO/trunk/src/OCE/IOM/prtctl.F90 – NEMO

Ignore:
Timestamp:
2020-12-04T08:48:38+01:00 (3 years ago)
Author:
laurent
Message:

Merging branch "2020/dev_r13648_ASINTER-04_laurent_bulk_ice", ticket #2369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/IOM/prtctl.F90

    r13982 r14072  
    1515   IMPLICIT NONE 
    1616   PRIVATE 
    17     
     17 
    1818   INTEGER , DIMENSION(  :), ALLOCATABLE ::   numprt_oce, numprt_top 
    1919   INTEGER , DIMENSION(  :), ALLOCATABLE ::   nall_ictls, nall_ictle   ! first, last indoor index for each i-domain 
     
    2222   REAL(wp), DIMENSION(  :), ALLOCATABLE ::   u_ctl , v_ctl            ! previous velocity trend values 
    2323   REAL(wp), DIMENSION(:,:), ALLOCATABLE ::   tra_ctl                  ! previous top trend values 
    24    !                                           
     24   ! 
    2525   PUBLIC prt_ctl         ! called by all subroutines 
    2626   PUBLIC prt_ctl_info    ! called by all subroutines 
     
    3131   !!---------------------------------------------------------------------- 
    3232   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
    33    !! $Id$  
     33   !! $Id$ 
    3434   !! Software governed by the CeCILL license (see ./LICENSE) 
    3535   !!---------------------------------------------------------------------- 
     
    7070      !!                     ***  ROUTINE prt_ctl  *** 
    7171      !! 
    72       !! ** Purpose : - print sum control of 2D or 3D arrays over the same area  
     72      !! ** Purpose : - print sum control of 2D or 3D arrays over the same area 
    7373      !!                in mono and mpp case. This way can be usefull when 
    74       !!                debugging a new parametrization in mono or mpp.  
     74      !!                debugging a new parametrization in mono or mpp. 
    7575      !! 
    7676      !! ** Method  : 2 possibilities exist when setting the sn_cfctl%prtctl parameter to 
    7777      !!                .true. in the ocean namelist: 
    78       !!              - to debug a MPI run .vs. a mono-processor one;  
     78      !!              - to debug a MPI run .vs. a mono-processor one; 
    7979      !!                the control print will be done over each sub-domain. 
    80       !!                The nictl[se] and njctl[se] parameters in the namelist must  
     80      !!                The nictl[se] and njctl[se] parameters in the namelist must 
    8181      !!                be set to zero and [ij]splt to the corresponding splitted 
    8282      !!                domain in MPI along respectively i-, j- directions. 
    83       !!              - to debug a mono-processor run over the whole domain/a specific area;  
     83      !!              - to debug a mono-processor run over the whole domain/a specific area; 
    8484      !!                in the first case the nictl[se] and njctl[se] parameters must be set 
    8585      !!                to zero else to the indices of the area to be controled. In both cases 
     
    8787      !!              - All arguments of the above calling sequence are optional so their 
    8888      !!                name must be explicitly typed if used. For instance if the 3D 
    89       !!                array tn(:,:,:) must be passed through the prt_ctl subroutine,  
     89      !!                array tn(:,:,:) must be passed through the prt_ctl subroutine, 
    9090      !!                it must look like: CALL prt_ctl(tab3d_1=tn). 
    9191      !! 
     
    9999      !!                    mask2   : mask (3D) to apply to the tab[23]d_2 array 
    100100      !!                    clinfo2 : information about the tab[23]d_2 array 
    101       !!                    kdim    : k- direction for 3D arrays  
    102       !!                    clinfo3 : additional information  
     101      !!                    kdim    : k- direction for 3D arrays 
     102      !!                    clinfo3 : additional information 
    103103      !!---------------------------------------------------------------------- 
    104104      INTEGER                             , INTENT(in)           ::   ktab2d_1, ktab3d_1, ktab4d_1, ktab2d_2, ktab3d_2 
     
    123123      !!---------------------------------------------------------------------- 
    124124      ! 
    125       ! Arrays, scalars initialization  
     125      ! Arrays, scalars initialization 
    126126      cl1  = '' 
    127127      cl2  = '' 
     
    310310            WRITE(numout,*) '~~~~~~~~~~~~~' 
    311311         ENDIF 
    312          IF( nn_ictls+nn_ictle+nn_jctls+nn_jctle == 0 )   THEN    ! print control done over the default area          
     312         IF( nn_ictls+nn_ictle+nn_jctls+nn_jctle == 0 )   THEN    ! print control done over the default area 
    313313            nn_isplt = MAX(1, nn_isplt)            ! number of processors following i-direction 
    314314            nn_jsplt = MAX(1, nn_jsplt)            ! number of processors following j-direction 
     
    391391      ENDIF 
    392392 
    393       ! Initialization  
     393      ! Initialization 
    394394      IF( clcomp == 'oce' ) THEN 
    395395         ALLOCATE( t_ctl(ijsplt), s_ctl(ijsplt), u_ctl(ijsplt), v_ctl(ijsplt), numprt_oce(ijsplt) ) 
     
    424424         WRITE(inum,*) 
    425425         WRITE(inum,'(19x,a20)') cl_run 
    426          WRITE(inum,*)  
     426         WRITE(inum,*) 
    427427         WRITE(inum,*) 'prt_ctl :  Sum control indices' 
    428428         WRITE(inum,*) '~~~~~~~' 
Note: See TracChangeset for help on using the changeset viewer.