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.
stpctl.F90 in NEMO/branches/2021/dev_r13747_HPC-11_mcastril_HPDAonline_DiagGPU/tests/DIA_GPU/MY_SRC – NEMO

source: NEMO/branches/2021/dev_r13747_HPC-11_mcastril_HPDAonline_DiagGPU/tests/DIA_GPU/MY_SRC/stpctl.F90 @ 15063

Last change on this file since 15063 was 14771, checked in by mcastril, 3 years ago

2021/HPC-11_mcastril_HPDAonline_DiagGPU: Update DIA_GPU test_case, diahsb.F90, stpctl.F90

File size: 19.9 KB
RevLine 
[14091]1MODULE stpctl
2   !!======================================================================
3   !!                       ***  MODULE  stpctl  ***
4   !! Ocean run control :  gross check of the ocean time stepping
5   !!======================================================================
6   !! History :  OPA  ! 1991-03  (G. Madec) Original code
7   !!            6.0  ! 1992-06  (M. Imbard)
8   !!            8.0  ! 1997-06  (A.M. Treguier)
9   !!   NEMO     1.0  ! 2002-06  (G. Madec)  F90: Free form and module
10   !!            2.0  ! 2009-07  (G. Madec)  Add statistic for time-spliting
11   !!            3.7  ! 2016-09  (G. Madec)  Remove solver
12   !!            4.0  ! 2017-04  (G. Madec)  regroup global communications
13   !!----------------------------------------------------------------------
14
15   !!----------------------------------------------------------------------
16   !!   stp_ctl      : Control the run
17   !!----------------------------------------------------------------------
18   USE oce             ! ocean dynamics and tracers variables
19   USE dom_oce         ! ocean space and time domain variables
20   USE c1d             ! 1D vertical configuration
21   USE zdf_oce ,  ONLY : ln_zad_Aimp       ! ocean vertical physics variables
22   USE wet_dry,   ONLY : ll_wd, ssh_ref    ! reference depth for negative bathy
23   
24   USE diawri          ! Standard run outputs       (dia_wri_state routine)
25   USE in_out_manager  ! I/O manager
26   USE lbclnk          ! ocean lateral boundary conditions (or mpp link)
27   USE lib_mpp         ! distributed memory computing
[14771]28   USE eosbn2, ONLY: ln_SEOS, rn_b0
[14091]29   !
30   USE netcdf          ! NetCDF library
31   USE, INTRINSIC :: IEEE_ARITHMETIC, ONLY : IEEE_IS_NAN
32   IMPLICIT NONE
33   PRIVATE
34
35   PUBLIC stp_ctl           ! routine called by step.F90
36
[14771]37   INTEGER, PARAMETER         ::   jpvar = 8
38   INTEGER                    ::   nrunid   ! netcdf file id
39   INTEGER, DIMENSION(jpvar)  ::   nvarid   ! netcdf variable id
[14091]40   !!----------------------------------------------------------------------
41   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
[14771]42   !! $Id: stpctl.F90 13616 2020-10-15 15:58:33Z smasson $
[14091]43   !! Software governed by the CeCILL license (see ./LICENSE)
44   !!----------------------------------------------------------------------
45CONTAINS
46
47   SUBROUTINE stp_ctl( kt, Kmm )
48      !!----------------------------------------------------------------------
49      !!                    ***  ROUTINE stp_ctl  ***
[14771]50      !!
[14091]51      !! ** Purpose :   Control the run
52      !!
53      !! ** Method  : - Save the time step in numstp
54      !!              - Stop the run IF problem encountered by setting nstop > 0
55      !!                Problems checked: |ssh| maximum larger than 10 m
56      !!                                  |U|   maximum larger than 10 m/s
57      !!                                  negative sea surface salinity
58      !!
59      !! ** Actions :   "time.step" file = last ocean time-step
60      !!                "run.stat"  file = run statistics
61      !!                 nstop indicator sheared among all local domain
62      !!----------------------------------------------------------------------
63      INTEGER, INTENT(in   ) ::   kt       ! ocean time-step index
64      INTEGER, INTENT(in   ) ::   Kmm      ! ocean time level index
65      !!
[14771]66      INTEGER, PARAMETER              ::   jptst = 4
[14091]67      INTEGER                         ::   ji                                    ! dummy loop indices
68      INTEGER                         ::   idtime, istatus
[14771]69      INTEGER , DIMENSION(jptst)      ::   iareasum, iareamin, iareamax
70      INTEGER , DIMENSION(3,jptst)    ::   iloc                                  ! min/max loc indices
71      REAL(wp)                        ::   zzz, zminsal, zmaxsal                 ! local real
72      REAL(wp), DIMENSION(jpvar+1)    ::   zmax
73      REAL(wp), DIMENSION(jptst)      ::   zmaxlocal
[14091]74      LOGICAL                         ::   ll_wrtstp, ll_colruns, ll_wrtruns, ll_0oce
75      LOGICAL, DIMENSION(jpi,jpj,jpk) ::   llmsk
76      CHARACTER(len=20)               ::   clname
77      !!----------------------------------------------------------------------
78      IF( nstop > 0 .AND. ngrdstop > -1 )   RETURN   !   stpctl was already called by a child grid
79      !
80      ll_wrtstp  = ( MOD( kt-nit000, sn_cfctl%ptimincr ) == 0 ) .OR. ( kt == nitend )
[14771]81      ll_colruns = ll_wrtstp .AND. sn_cfctl%l_runstat .AND. jpnij > 1
[14091]82      ll_wrtruns = ( ll_colruns .OR. jpnij == 1 ) .AND. lwm
83      !
84      IF( kt == nit000 ) THEN
85         !
86         IF( lwp ) THEN
87            WRITE(numout,*)
88            WRITE(numout,*) 'stp_ctl : time-stepping control'
89            WRITE(numout,*) '~~~~~~~'
90         ENDIF
91         !                                ! open time.step    ascii file, done only by 1st subdomain
92         IF( lwm )   CALL ctl_opn( numstp, 'time.step', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea )
93         !
94         IF( ll_wrtruns ) THEN
95            !                             ! open run.stat     ascii file, done only by 1st subdomain
96            CALL ctl_opn( numrun, 'run.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea )
97            !                             ! open run.stat.nc netcdf file, done only by 1st subdomain
98            clname = 'run.stat.nc'
99            IF( .NOT. Agrif_Root() )   clname = TRIM(Agrif_CFixed())//"_"//TRIM(clname)
100            istatus = NF90_CREATE( TRIM(clname), NF90_CLOBBER, nrunid )
101            istatus = NF90_DEF_DIM( nrunid, 'time', NF90_UNLIMITED, idtime )
102            istatus = NF90_DEF_VAR( nrunid, 'abs_ssh_max', NF90_DOUBLE, (/ idtime /), nvarid(1) )
103            istatus = NF90_DEF_VAR( nrunid,   'abs_u_max', NF90_DOUBLE, (/ idtime /), nvarid(2) )
104            istatus = NF90_DEF_VAR( nrunid,       's_min', NF90_DOUBLE, (/ idtime /), nvarid(3) )
105            istatus = NF90_DEF_VAR( nrunid,       's_max', NF90_DOUBLE, (/ idtime /), nvarid(4) )
106            istatus = NF90_DEF_VAR( nrunid,       't_min', NF90_DOUBLE, (/ idtime /), nvarid(5) )
107            istatus = NF90_DEF_VAR( nrunid,       't_max', NF90_DOUBLE, (/ idtime /), nvarid(6) )
108            IF( ln_zad_Aimp ) THEN
109               istatus = NF90_DEF_VAR( nrunid,   'Cf_max', NF90_DOUBLE, (/ idtime /), nvarid(7) )
110               istatus = NF90_DEF_VAR( nrunid,'abs_wi_max',NF90_DOUBLE, (/ idtime /), nvarid(8) )
111            ENDIF
112            istatus = NF90_ENDDEF(nrunid)
113         ENDIF
[14771]114         !
[14091]115      ENDIF
116      !
117      !                                   !==              write current time step              ==!
118      !                                   !==  done only by 1st subdomain at writting timestep  ==!
119      IF( lwm .AND. ll_wrtstp ) THEN
120         WRITE ( numstp, '(1x, i8)' )   kt
121         REWIND( numstp )
122      ENDIF
123      !                                   !==            test of local extrema           ==!
124      !                                   !==  done by all processes at every time step  ==!
125      !
[14771]126      llmsk(     1:nn_hls,:,:) = .FALSE.                                          ! exclude halos from the checked region
127      llmsk(Nie0+1:   jpi,:,:) = .FALSE.
128      llmsk(:,     1:nn_hls,:) = .FALSE.
129      llmsk(:,Nje0+1:   jpj,:) = .FALSE.
[14091]130      !
131      llmsk(Nis0:Nie0,Njs0:Nje0,1) = ssmask(Nis0:Nie0,Njs0:Nje0) == 1._wp         ! define only the inner domain
132      !
133      ll_0oce = .NOT. ANY( llmsk(:,:,1) )                                         ! no ocean point in the inner domain?
134      !
135      IF( ll_wd ) THEN
136         zmax(1) = MAXVAL( ABS( ssh(:,:,Kmm) + ssh_ref ), mask = llmsk(:,:,1) )   ! ssh max
137      ELSE
138         zmax(1) = MAXVAL( ABS( ssh(:,:,Kmm)           ), mask = llmsk(:,:,1) )   ! ssh max
139      ENDIF
140      llmsk(Nis0:Nie0,Njs0:Nje0,:) = umask(Nis0:Nie0,Njs0:Nje0,:) == 1._wp        ! define only the inner domain
141      zmax(2) = MAXVAL(  ABS( uu(:,:,:,Kmm) ), mask = llmsk )                     ! velocity max (zonal only)
142      llmsk(Nis0:Nie0,Njs0:Nje0,:) = tmask(Nis0:Nie0,Njs0:Nje0,:) == 1._wp        ! define only the inner domain
143      zmax(3) = MAXVAL( -ts(:,:,:,jp_sal,Kmm), mask = llmsk )                     ! minus salinity max
144      zmax(4) = MAXVAL(  ts(:,:,:,jp_sal,Kmm), mask = llmsk )                     !       salinity max
145      IF( ll_colruns .OR. jpnij == 1 ) THEN     ! following variables are used only in the netcdf file
146         zmax(5) = MAXVAL( -ts(:,:,:,jp_tem,Kmm), mask = llmsk )                  ! minus temperature max
147         zmax(6) = MAXVAL(  ts(:,:,:,jp_tem,Kmm), mask = llmsk )                  !       temperature max
148         IF( ln_zad_Aimp ) THEN
149            zmax(7) = MAXVAL(   Cu_adv(:,:,:)   , mask = llmsk )                  ! partitioning coeff. max
150            llmsk(:,:,:) = wmask(:,:,:) == 1._wp
151            zmax(8) = MAXVAL(  ABS( wi(:,:,:) ) , mask = llmsk )                  ! implicit vertical vel. max
152         ELSE
153            zmax(7:8) = 0._wp
154         ENDIF
155      ELSE
156         zmax(5:8) = 0._wp
157      ENDIF
[14771]158      zmax(jpvar+1) = REAL( nstop, wp )                                           ! stop indicator
[14091]159      !
160      !                                   !==               get global extrema             ==!
161      !                                   !==  done by all processes if writting run.stat  ==!
162      IF( ll_colruns ) THEN
[14771]163         zmaxlocal(:) = zmax(1:jptst)
[14091]164         CALL mpp_max( "stpctl", zmax )          ! max over the global domain: ok even of ll_0oce = .true.
[14771]165         nstop = NINT( zmax(jpvar+1) )           ! update nstop indicator (now sheared among all local domains)
[14091]166      ELSE
167         ! if no ocean point: MAXVAL returns -HUGE => we must overwrite this value to avoid error handling bellow.
[14771]168         IF( ll_0oce )   zmax(1:jptst) = (/ 0._wp, 0._wp, -1._wp, 1._wp /)   ! default "valid" values...
[14091]169      ENDIF
170      !
[14771]171      zmax(3) = -zmax(3)                              ! move back from max(-zz) to min(zz) : easier to manage!
172      zmax(5) = -zmax(5)                              ! move back from max(-zz) to min(zz) : easier to manage!
173      IF( ll_colruns ) zmaxlocal(3) = -zmaxlocal(3)   ! move back from max(-zz) to min(zz) : easier to manage!
[14091]174      !
175      !                                   !==              write "run.stat" files              ==!
176      !                                   !==  done only by 1st subdomain at writting timestep  ==!
177      IF( ll_wrtruns ) THEN
[14771]178         WRITE(numrun,9500) kt, zmax(1:jptst)
179         DO ji = 1, jpvar - 2 * COUNT( .NOT. (/ln_zad_Aimp/) )
[14091]180            istatus = NF90_PUT_VAR( nrunid, nvarid(ji), (/zmax(ji)/), (/kt/), (/1/) )
181         END DO
182         IF( kt == nitend )   istatus = NF90_CLOSE(nrunid)
183      END IF
184      !                                   !==               error handling               ==!
185      !                                   !==  done by all processes at every time step  ==!
186      !
[14771]187      IF ( ln_SEOS.AND.(rn_b0==0._wp) ) THEN             ! Discard checks on salinity
188         zmaxsal =  HUGE(1._wp)                               ! if not used in eos
189         zminsal = -HUGE(1._wp)
190      ELSE
191         zmaxsal = 100._wp
192         zminsal =   0._wp
193      ENDIF 
194      !
195      IF(  zmax(1) >   20._wp .OR.   &                        ! too large sea surface height ( > 20 m )
196         & zmax(2) >   10._wp .OR.   &                        ! too large velocity ( > 10 m/s)
197         & zmax(3) <= zminsal .OR.   &                        ! negative or zero sea surface salinity
198         & zmax(4) >= zmaxsal .OR.   &                        ! too large sea surface salinity ( > 100 )
199         & zmax(4) <  zminsal .OR.   &                        ! too large sea surface salinity (keep this line for sea-ice)
200         & IEEE_IS_NAN( SUM(zmax(1:jptst)) ) .OR.   &         ! NaN encounter in the tests
201         & ABS(   SUM(zmax(1:jptst)) ) > HUGE(1._wp) ) THEN   ! Infinity encounter in the tests
[14091]202         !
203         iloc(:,:) = 0
204         IF( ll_colruns ) THEN   ! zmax is global, so it is the same on all subdomains -> no dead lock with mpp_maxloc
205            ! first: close the netcdf file, so we can read it
206            IF( lwm .AND. kt /= nitend )   istatus = NF90_CLOSE(nrunid)
207            ! get global loc on the min/max
208            llmsk(Nis0:Nie0,Njs0:Nje0,1) = ssmask(Nis0:Nie0,Njs0:Nje0 ) == 1._wp         ! define only the inner domain
209            CALL mpp_maxloc( 'stpctl', ABS(ssh(:,:,         Kmm)), llmsk(:,:,1), zzz, iloc(1:2,1) )   ! mpp_maxloc ok if mask = F
210            llmsk(Nis0:Nie0,Njs0:Nje0,:) = umask(Nis0:Nie0,Njs0:Nje0,:) == 1._wp        ! define only the inner domain
211            CALL mpp_maxloc( 'stpctl', ABS( uu(:,:,:,       Kmm)), llmsk(:,:,:), zzz, iloc(1:3,2) )
212            llmsk(Nis0:Nie0,Njs0:Nje0,:) = tmask(Nis0:Nie0,Njs0:Nje0,:) == 1._wp        ! define only the inner domain
213            CALL mpp_minloc( 'stpctl',      ts(:,:,:,jp_sal,Kmm) , llmsk(:,:,:), zzz, iloc(1:3,3) )
214            CALL mpp_maxloc( 'stpctl',      ts(:,:,:,jp_sal,Kmm) , llmsk(:,:,:), zzz, iloc(1:3,4) )
215            ! find which subdomain has the max.
216            iareamin(:) = jpnij+1   ;   iareamax(:) = 0   ;   iareasum(:) = 0
[14771]217            DO ji = 1, jptst
[14091]218               IF( zmaxlocal(ji) == zmax(ji) ) THEN
219                  iareamin(ji) = narea   ;   iareamax(ji) = narea   ;   iareasum(ji) = 1
220               ENDIF
221            END DO
222            CALL mpp_min( "stpctl", iareamin )         ! min over the global domain
223            CALL mpp_max( "stpctl", iareamax )         ! max over the global domain
224            CALL mpp_sum( "stpctl", iareasum )         ! sum over the global domain
225         ELSE                    ! find local min and max locations:
226            ! if we are here, this means that the subdomain contains some oce points -> no need to test the mask used in maxloc
227            llmsk(Nis0:Nie0,Njs0:Nje0,1) = ssmask(Nis0:Nie0,Njs0:Nje0 ) == 1._wp        ! define only the inner domain
228            iloc(1:2,1) = MAXLOC( ABS( ssh(:,:,         Kmm)), mask = llmsk(:,:,1) )
229            llmsk(Nis0:Nie0,Njs0:Nje0,:) = umask(Nis0:Nie0,Njs0:Nje0,:) == 1._wp        ! define only the inner domain
230            iloc(1:3,2) = MAXLOC( ABS(  uu(:,:,:,       Kmm)), mask = llmsk(:,:,:) )
231            llmsk(Nis0:Nie0,Njs0:Nje0,:) = tmask(Nis0:Nie0,Njs0:Nje0,:) == 1._wp        ! define only the inner domain
232            iloc(1:3,3) = MINLOC(       ts(:,:,:,jp_sal,Kmm) , mask = llmsk(:,:,:) )
233            iloc(1:3,4) = MAXLOC(       ts(:,:,:,jp_sal,Kmm) , mask = llmsk(:,:,:) )
[14771]234            DO ji = 1, jptst   ! local domain indices ==> global domain indices, excluding halos
[14091]235               iloc(1:2,ji) = (/ mig0(iloc(1,ji)), mjg0(iloc(2,ji)) /)
236            END DO
237            iareamin(:) = narea   ;   iareamax(:) = narea   ;   iareasum(:) = 1         ! this is local information
238         ENDIF
239         !
240         WRITE(ctmp1,*) ' stp_ctl: |ssh| > 20 m  or  |U| > 10 m/s  or  S <= 0  or  S >= 100  or  NaN encounter in the tests'
241         CALL wrt_line( ctmp2, kt, '|ssh| max', zmax(1), iloc(:,1), iareasum(1), iareamin(1), iareamax(1) )
242         CALL wrt_line( ctmp3, kt, '|U|   max', zmax(2), iloc(:,2), iareasum(2), iareamin(2), iareamax(2) )
243         CALL wrt_line( ctmp4, kt, 'Sal   min', zmax(3), iloc(:,3), iareasum(3), iareamin(3), iareamax(3) )
244         CALL wrt_line( ctmp5, kt, 'Sal   max', zmax(4), iloc(:,4), iareasum(4), iareamin(4), iareamax(4) )
245         IF( Agrif_Root() ) THEN
246            WRITE(ctmp6,*) '      ===> output of last computed fields in output.abort* files'
247         ELSE
248            WRITE(ctmp6,*) '      ===> output of last computed fields in '//TRIM(Agrif_CFixed())//'_output.abort* files'
249         ENDIF
250         !
251         CALL dia_wri_state( Kmm, 'output.abort' )     ! create an output.abort file
252         !
[14771]253         IF( ll_colruns .OR. jpnij == 1 ) THEN   ! all processes synchronized -> use lwp to print in opened ocean.output files
[14091]254            IF(lwp) THEN   ;   CALL ctl_stop( ctmp1, ' ', ctmp2, ctmp3, ctmp4, ctmp5, ' ', ctmp6 )
255            ELSE           ;   nstop = MAX(1, nstop)   ! make sure nstop > 0 (automatically done when calling ctl_stop)
256            ENDIF
257         ELSE                                    ! only mpi subdomains with errors are here -> STOP now
258            CALL ctl_stop( 'STOP', ctmp1, ' ', ctmp2, ctmp3, ctmp4, ctmp5, ' ', ctmp6 )
259         ENDIF
260         !
261      ENDIF
262      !
263      IF( nstop > 0 ) THEN                                                  ! an error was detected and we did not abort yet...
264         ngrdstop = Agrif_Fixed()                                           ! store which grid got this error
265         IF( .NOT. ll_colruns .AND. jpnij > 1 )   CALL ctl_stop( 'STOP' )   ! we must abort here to avoid MPI deadlock
266      ENDIF
267      !
2689500  FORMAT(' it :', i8, '    |ssh|_max: ', D23.16, ' |U|_max: ', D23.16,' S_min: ', D23.16,' S_max: ', D23.16)
269      !
270   END SUBROUTINE stp_ctl
271
272
273   SUBROUTINE wrt_line( cdline, kt, cdprefix, pval, kloc, ksum, kmin, kmax )
274      !!----------------------------------------------------------------------
275      !!                     ***  ROUTINE wrt_line  ***
276      !!
277      !! ** Purpose :   write information line
278      !!
279      !!----------------------------------------------------------------------
280      CHARACTER(len=*),      INTENT(  out) ::   cdline
281      CHARACTER(len=*),      INTENT(in   ) ::   cdprefix
282      REAL(wp),              INTENT(in   ) ::   pval
283      INTEGER, DIMENSION(3), INTENT(in   ) ::   kloc
284      INTEGER,               INTENT(in   ) ::   kt, ksum, kmin, kmax
285      !
286      CHARACTER(len=80) ::   clsuff
287      CHARACTER(len=9 ) ::   clkt, clsum, clmin, clmax
288      CHARACTER(len=9 ) ::   cli, clj, clk
289      CHARACTER(len=1 ) ::   clfmt
290      CHARACTER(len=4 ) ::   cl4   ! needed to be able to compile with Agrif, I don't know why
291      INTEGER           ::   ifmtk
292      !!----------------------------------------------------------------------
293      WRITE(clkt , '(i9)') kt
294     
295      WRITE(clfmt, '(i1)') INT(LOG10(REAL(jpnij  ,wp))) + 1     ! how many digits to we need to write ? (we decide max = 9)
296      !!! WRITE(clsum, '(i'//clfmt//')') ksum                   ! this is creating a compilation error with AGRIF
297      cl4 = '(i'//clfmt//')'   ;   WRITE(clsum, cl4) ksum
298      WRITE(clfmt, '(i1)') INT(LOG10(REAL(MAX(1,jpnij-1),wp))) + 1    ! how many digits to we need to write ? (we decide max = 9)
299      cl4 = '(i'//clfmt//')'   ;   WRITE(clmin, cl4) kmin-1
300                                   WRITE(clmax, cl4) kmax-1
301      !
302      WRITE(clfmt, '(i1)') INT(LOG10(REAL(jpiglo,wp))) + 1      ! how many digits to we need to write jpiglo? (we decide max = 9)
303      cl4 = '(i'//clfmt//')'   ;   WRITE(cli, cl4) kloc(1)      ! this is ok with AGRIF
304      WRITE(clfmt, '(i1)') INT(LOG10(REAL(jpjglo,wp))) + 1      ! how many digits to we need to write jpjglo? (we decide max = 9)
305      cl4 = '(i'//clfmt//')'   ;   WRITE(clj, cl4) kloc(2)      ! this is ok with AGRIF
306      !
307      IF( ksum == 1 ) THEN   ;   WRITE(clsuff,9100) TRIM(clmin)
308      ELSE                   ;   WRITE(clsuff,9200) TRIM(clsum), TRIM(clmin), TRIM(clmax)
309      ENDIF
310      IF(kloc(3) == 0) THEN
311         ifmtk = INT(LOG10(REAL(jpk,wp))) + 1                   ! how many digits to we need to write jpk? (we decide max = 9)
312         clk = REPEAT(' ', ifmtk)                               ! create the equivalent in blank string
313         WRITE(cdline,9300) TRIM(ADJUSTL(clkt)), TRIM(ADJUSTL(cdprefix)), pval, TRIM(cli), TRIM(clj), clk(1:ifmtk), TRIM(clsuff)
314      ELSE
315         WRITE(clfmt, '(i1)') INT(LOG10(REAL(jpk,wp))) + 1      ! how many digits to we need to write jpk? (we decide max = 9)
316         !!! WRITE(clk, '(i'//clfmt//')') kloc(3)               ! this is creating a compilation error with AGRIF
317         cl4 = '(i'//clfmt//')'   ;   WRITE(clk, cl4) kloc(3)   ! this is ok with AGRIF
318         WRITE(cdline,9400) TRIM(ADJUSTL(clkt)), TRIM(ADJUSTL(cdprefix)), pval, TRIM(cli), TRIM(clj),    TRIM(clk), TRIM(clsuff)
319      ENDIF
320      !
3219100  FORMAT('MPI rank ', a)
3229200  FORMAT('found in ', a, ' MPI tasks, spread out among ranks ', a, ' to ', a)
3239300  FORMAT('kt ', a, ' ', a, ' ', 1pg11.4, ' at i j   ', a, ' ', a, ' ', a, ' ', a)
3249400  FORMAT('kt ', a, ' ', a, ' ', 1pg11.4, ' at i j k ', a, ' ', a, ' ', a, ' ', a)
325      !
326   END SUBROUTINE wrt_line
327
328
329   !!======================================================================
330END MODULE stpctl
Note: See TracBrowser for help on using the repository browser.