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

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

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


Revision 1.3 - (hide annotations) (download)
Sat Apr 3 04:57:11 2004 UTC (20 years, 2 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57g_pre, checkpoint57s_post, checkpoint58b_post, checkpoint57b_post, checkpoint57g_post, checkpoint56b_post, checkpoint57y_post, checkpoint54d_post, checkpoint54e_post, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint59, checkpoint58, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint54f_post, checkpoint58y_post, checkpoint58t_post, checkpoint55i_post, checkpoint58m_post, checkpoint57l_post, checkpoint57t_post, checkpoint55c_post, checkpoint57v_post, checkpoint57f_post, checkpoint53d_post, checkpoint60, checkpoint61, checkpoint57a_post, checkpoint57h_pre, checkpoint54b_post, checkpoint58w_post, checkpoint57h_post, checkpoint52m_post, checkpoint57y_pre, checkpoint55g_post, checkpoint58o_post, checkpoint57c_post, checkpoint58p_post, checkpoint58q_post, checkpoint55d_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint54a_pre, checkpoint53c_post, checkpoint55d_pre, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint58n_post, checkpoint57e_post, checkpoint55b_post, checkpoint53a_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint53g_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, eckpoint57e_pre, checkpoint58k_post, checkpoint58v_post, checkpoint56a_post, checkpoint58l_post, checkpoint53f_post, checkpoint57h_done, checkpoint57j_post, checkpoint57f_pre, checkpoint61f, checkpoint58g_post, checkpoint58x_post, checkpoint52n_post, checkpoint53b_pre, checkpoint59j, checkpoint58h_post, checkpoint56c_post, checkpoint58j_post, checkpoint57a_pre, checkpoint55a_post, checkpoint57o_post, checkpoint57k_post, checkpoint53b_post, checkpoint57w_post, checkpoint61e, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post, checkpoint58u_post, checkpoint53d_pre, checkpoint58s_post, checkpoint55e_post, checkpoint61g, checkpoint61d, checkpoint54c_post, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61l, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i
Changes since 1.2: +19 -13 lines
 o add monitor to apr_reference
 o another _R[48] clean-up in eesupp

1 edhill 1.3 C $Header: /u/gcmpack/MITgcm/pkg/monitor/mon_advcflw2.F,v 1.2 2003/05/13 18:18:05 adcroft Exp $
2 jmc 1.1 C $Name: $
3    
4 adcroft 1.2 #include "MONITOR_OPTIONS.h"
5 jmc 1.1
6 edhill 1.3 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7     CBOP 0
8     C !ROUTINE: MON_ADVCFLW2
9    
10     C !INTERFACE:
11 jmc 1.1 SUBROUTINE MON_ADVCFLW2(
12 edhill 1.3 I label, W, rHFac, rDrF, dT,
13     I myThid )
14    
15     C !DESCRIPTION:
16     C Calculates maximum CFL number in the vertical relevant for tracer
17     C Adv. Pb. with Partial Cell.
18    
19     C !USES:
20 jmc 1.1 IMPLICIT NONE
21     #include "SIZE.h"
22     #include "EEPARAMS.h"
23     #include "MONITOR.h"
24    
25 edhill 1.3 C !INPUT PARAMETERS:
26 jmc 1.1 CHARACTER*(*) label
27     _RL W(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
28     _RS rHFac(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
29     _RS rDrF(Nr)
30     _RL dT
31     INTEGER myThid
32 edhill 1.3 CEOP
33 jmc 1.1
34 edhill 1.3 C !LOCAL VARIABLES:
35 jmc 1.1 INTEGER bi,bj,I,J,K
36     _RL tmpVal,theMax
37    
38     theMax=0.
39    
40     DO bj=myByLo(myThid),myByHi(myThid)
41     DO bi=myBxLo(myThid),myBxHi(myThid)
42     DO K=2,Nr
43     DO J=1,sNy
44     DO I=1,sNx
45     tmpVal=abs(W(I,J,K,bi,bj))*dT
46     & *max( rDrF(K)*rHfac(I,J,K,bi,bj),
47     & rDrF(K-1)*rHfac(I,J,K-1,bi,bj) )
48     theMax=max(theMax,tmpVal)
49     ENDDO
50     ENDDO
51     ENDDO
52     ENDDO
53     ENDDO
54     _GLOBAL_MAX_R8(theMax,myThid)
55    
56     CALL MON_OUT_RL( label, theMax, mon_foot_max ,myThid)
57    
58     RETURN
59     END
60 edhill 1.3
61     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|

  ViewVC Help
Powered by ViewVC 1.1.22