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

Contents of /MITgcm/pkg/monitor/mon_advcflw.F

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


Revision 1.5 - (show annotations) (download)
Tue May 13 18:18:05 2003 UTC (21 years, 1 month ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint52l_pre, hrcube4, hrcube5, checkpoint52d_pre, checkpoint52j_pre, checkpoint51o_pre, checkpoint51l_post, checkpoint52l_post, checkpoint52k_post, checkpoint51, checkpoint52, checkpoint52f_post, checkpoint51f_post, checkpoint51d_post, checkpoint51t_post, checkpoint51n_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post, checkpoint51j_post, checkpoint52e_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint52b_pre, checkpoint51l_pre, checkpoint51q_post, checkpoint51b_pre, checkpoint52b_post, checkpoint52c_post, checkpoint51h_pre, checkpoint50f_post, checkpoint50f_pre, checkpoint52f_pre, branchpoint-genmake2, checkpoint51r_post, checkpoint51i_post, checkpoint51b_post, checkpoint51c_post, checkpoint52d_post, checkpoint50g_post, checkpoint52a_pre, checkpoint50h_post, checkpoint52i_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint52h_pre, checkpoint52j_post, checkpoint50e_post, branch-netcdf, checkpoint51e_post, checkpoint51o_post, checkpoint51f_pre, checkpoint52a_post, checkpoint51g_post, ecco_c52_e35, checkpoint51m_post, checkpoint51a_post, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-genmake2, branch-nonh, tg2-branch, netcdf-sm0, checkpoint51n_branch
Changes since 1.4: +2 -2 lines
 o split mon_set.F into mon_set_iounit.F and mon_set_pref.F
 o replaced ref's to CPP_OPTIONS with MONITOR_OPTIONS
 o added new s/r monitor_solution.F that checks that model state
   and if unlikely lets the model die cleanly
   - this is to reduce the number of hanging processes we encounter
     if the model dies due to FPEs

1 C $Header: /u/gcmpack/models/MITgcmUV/pkg/monitor/mon_advcflw.F,v 1.4 2001/06/25 20:35:23 adcroft Exp $
2 C $Name: $
3
4 #include "MONITOR_OPTIONS.h"
5
6 SUBROUTINE MON_ADVCFLW(
7 I label, W, rDz, dT,
8 I myThid )
9 C /==========================================================\
10 C | SUBROUTINE MON_ADVCFLW |
11 C | o Calculates maximum CFL number in vertical |
12 C |==========================================================|
13 C \==========================================================/
14 IMPLICIT NONE
15
16 C === Global data ===
17 #include "SIZE.h"
18 #include "EEPARAMS.h"
19 #include "MONITOR.h"
20
21 C === Routine arguments ===
22 CHARACTER*(*) label
23 _RL W(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
24 _RS rDz(Nr)
25 _RL dT
26 INTEGER myThid
27
28 C === Local variables ====
29 INTEGER bi,bj,I,J,K
30 _RL tmpVal,theMax
31
32 theMax=0.
33
34 DO bj=myByLo(myThid),myByHi(myThid)
35 DO bi=myBxLo(myThid),myBxHi(myThid)
36 DO K=1,Nr
37 DO J=1,sNy
38 DO I=1,sNx
39 tmpVal=abs(W(I,J,K,bi,bj))*rDz(K)*dT
40 theMax=max(theMax,tmpVal)
41 ENDDO
42 ENDDO
43 ENDDO
44 ENDDO
45 ENDDO
46 _GLOBAL_MAX_R8(theMax,myThid)
47
48 CALL MON_OUT_RL( label, theMax, mon_foot_max ,myThid)
49
50 RETURN
51 END

  ViewVC Help
Powered by ViewVC 1.1.22