Changeset 14072 for NEMO/trunk/src/OCE/IOM/prtctl.F90
- Timestamp:
- 2020-12-04T08:48:38+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/src/OCE/IOM/prtctl.F90
r13982 r14072 15 15 IMPLICIT NONE 16 16 PRIVATE 17 17 18 18 INTEGER , DIMENSION( :), ALLOCATABLE :: numprt_oce, numprt_top 19 19 INTEGER , DIMENSION( :), ALLOCATABLE :: nall_ictls, nall_ictle ! first, last indoor index for each i-domain … … 22 22 REAL(wp), DIMENSION( :), ALLOCATABLE :: u_ctl , v_ctl ! previous velocity trend values 23 23 REAL(wp), DIMENSION(:,:), ALLOCATABLE :: tra_ctl ! previous top trend values 24 ! 24 ! 25 25 PUBLIC prt_ctl ! called by all subroutines 26 26 PUBLIC prt_ctl_info ! called by all subroutines … … 31 31 !!---------------------------------------------------------------------- 32 32 !! NEMO/OCE 4.0 , NEMO Consortium (2018) 33 !! $Id$ 33 !! $Id$ 34 34 !! Software governed by the CeCILL license (see ./LICENSE) 35 35 !!---------------------------------------------------------------------- … … 70 70 !! *** ROUTINE prt_ctl *** 71 71 !! 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 73 73 !! 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. 75 75 !! 76 76 !! ** Method : 2 possibilities exist when setting the sn_cfctl%prtctl parameter to 77 77 !! .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; 79 79 !! 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 81 81 !! be set to zero and [ij]splt to the corresponding splitted 82 82 !! 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; 84 84 !! in the first case the nictl[se] and njctl[se] parameters must be set 85 85 !! to zero else to the indices of the area to be controled. In both cases … … 87 87 !! - All arguments of the above calling sequence are optional so their 88 88 !! 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, 90 90 !! it must look like: CALL prt_ctl(tab3d_1=tn). 91 91 !! … … 99 99 !! mask2 : mask (3D) to apply to the tab[23]d_2 array 100 100 !! 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 103 103 !!---------------------------------------------------------------------- 104 104 INTEGER , INTENT(in) :: ktab2d_1, ktab3d_1, ktab4d_1, ktab2d_2, ktab3d_2 … … 123 123 !!---------------------------------------------------------------------- 124 124 ! 125 ! Arrays, scalars initialization 125 ! Arrays, scalars initialization 126 126 cl1 = '' 127 127 cl2 = '' … … 310 310 WRITE(numout,*) '~~~~~~~~~~~~~' 311 311 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 313 313 nn_isplt = MAX(1, nn_isplt) ! number of processors following i-direction 314 314 nn_jsplt = MAX(1, nn_jsplt) ! number of processors following j-direction … … 391 391 ENDIF 392 392 393 ! Initialization 393 ! Initialization 394 394 IF( clcomp == 'oce' ) THEN 395 395 ALLOCATE( t_ctl(ijsplt), s_ctl(ijsplt), u_ctl(ijsplt), v_ctl(ijsplt), numprt_oce(ijsplt) ) … … 424 424 WRITE(inum,*) 425 425 WRITE(inum,'(19x,a20)') cl_run 426 WRITE(inum,*) 426 WRITE(inum,*) 427 427 WRITE(inum,*) 'prt_ctl : Sum control indices' 428 428 WRITE(inum,*) '~~~~~~~'
Note: See TracChangeset
for help on using the changeset viewer.