/[MITgcm]/MITgcm/pkg/monitor/mon_advcfl.F
ViewVC logotype

Annotation of /MITgcm/pkg/monitor/mon_advcfl.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Wed Jun 6 14:50:23 2001 UTC (23 years ago) by adcroft
Branch: MAIN
Changes since 1.1: +3 -3 lines
Changed formatting to line up = signs.

1 adcroft 1.2 C $Header: /u/gcmpack/models/MITgcmUV/pkg/monitor/mon_advcfl.F,v 1.1 2001/05/30 19:33:18 adcroft Exp $
2     C $Name: $
3 adcroft 1.1
4     #include "CPP_OPTIONS.h"
5    
6     SUBROUTINE MON_ADVCFL(
7     I label, U, rDx, dT,
8     I myThid )
9     C /==========================================================\
10     C | SUBROUTINE MON_ADVCFL |
11     C | o Calculates maximum CFL number |
12     C |==========================================================|
13     C \==========================================================/
14     IMPLICIT NONE
15    
16     C === Global data ===
17     #include "SIZE.h"
18     #include "EEPARAMS.h"
19    
20     C === Routine arguments ===
21     CHARACTER*(*) label
22     _RL U(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
23     _RS rDx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
24     _RL dT
25     INTEGER myThid
26    
27     C === Local variables ====
28     INTEGER bi,bj,I,J,K
29     _RL tmpVal,theMax
30    
31     theMax=0.
32    
33     DO bj=myByLo(myThid),myByHi(myThid)
34     DO bi=myBxLo(myThid),myBxHi(myThid)
35     DO K=1,Nr
36     DO J=1,sNy
37     DO I=1,sNx
38     tmpVal=abs(U(I,J,K,bi,bj))*rDx(I,J,BI,BJ)*dT
39     theMax=max(theMax,tmpVal)
40     ENDDO
41     ENDDO
42     ENDDO
43     ENDDO
44     ENDDO
45     _GLOBAL_MAX_R8(theMax,myThid)
46    
47     _BEGIN_MASTER( myThid )
48 adcroft 1.2 WRITE(*,'(A,A27,A,1PE22.14)')
49 adcroft 1.1 & 'MON_ADVCFL: ',label,' max=',theMax
50     _END_MASTER( )
51    
52     RETURN
53     END

  ViewVC Help
Powered by ViewVC 1.1.22