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

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

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


Revision 1.3 - (hide annotations) (download)
Sat Apr 3 21:17:10 2004 UTC (20 years, 3 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint52n_post, checkpoint53d_post, checkpoint54a_pre, checkpoint55c_post, checkpoint54e_post, checkpoint54a_post, checkpoint53c_post, checkpoint55d_pre, checkpoint55j_post, checkpoint55h_post, checkpoint53b_post, checkpoint54b_post, checkpoint53b_pre, checkpoint55b_post, checkpoint54d_post, checkpoint52m_post, checkpoint55, checkpoint53a_post, checkpoint54, checkpoint54f_post, checkpoint55g_post, checkpoint55f_post, checkpoint55i_post, checkpoint53, checkpoint53g_post, checkpoint55e_post, checkpoint53f_post, checkpoint55a_post, checkpoint53d_pre, checkpoint54c_post, checkpoint55d_post
Changes since 1.2: +15 -13 lines
 o removing duplicate code in mon_out.F in preparation for MNC output
 o convert all monitor files to protex-style comments

1 edhill 1.3 C $Header: /u/gcmpack/MITgcm/pkg/monitor/mon_solution.F,v 1.2 2003/12/15 02:13:13 jmc Exp $
2 adcroft 1.1 C $Name: $
3    
4     #include "MONITOR_OPTIONS.h"
5    
6 edhill 1.3 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7     CBOP
8     C !ROUTINE: MON_SOLUTION
9    
10     C !INTERFACE:
11 adcroft 1.1 SUBROUTINE MON_SOLUTION(
12 edhill 1.3 I myIter, myTime, myThid )
13    
14     C !DESCRIPTION:
15     C Checks that the solutions is within bounds
16    
17     C !USES:
18 adcroft 1.1 IMPLICIT NONE
19     #include "SIZE.h"
20     #include "EEPARAMS.h"
21     #include "PARAMS.h"
22     #include "DYNVARS.h"
23     #include "GRID.h"
24     #include "MONITOR.h"
25    
26 edhill 1.3 C !INPUT PARAMETERS:
27 adcroft 1.1 INTEGER myIter
28     _RL myTime
29     INTEGER myThid
30 edhill 1.3 CEOP
31 adcroft 1.1
32 edhill 1.3 C !LOCAL VARIABLES:
33 adcroft 1.1 CHARACTER*(MAX_LEN_MBUF) msgBuf
34     _RL tMin,tMax,tMean,tSD,tDel2,tVol
35    
36     C Statistics for T
37     CALL MON_STATS_RL(
38     I Nr, theta, maskC,hFacC,rA,drF,
39     O tMin,tMax,tMean,tSD,tDel2,tVol,
40     I myThid )
41    
42     IF (tMax-tMin.GT.1.e3) THEN
43     _BEGIN_MASTER(myThid)
44     WRITE(msgBuf,'(A,1P2E12.3)')
45     & 'SOLUTION IS HEADING OUT OF BOUNDS: tMin,tMax=',tMin,tMax
46     CALL PRINT_MESSAGE( msgBuf, mon_ioUnit, SQUEEZE_RIGHT , 1)
47     WRITE(msgBuf,'(A)') 'STOPPING CALCULATION'
48     CALL PRINT_MESSAGE( msgBuf, mon_ioUnit, SQUEEZE_RIGHT , 1)
49     _END_MASTER(myThid)
50    
51 jmc 1.2 C jmc: add this "if not ..." to avoid beeing stuck when using coupler;
52     IF ( .NOT. useCoupler )
53     & CALL EEDIE
54 adcroft 1.1 STOP 'MON_SOLUTION: STOPPED DUE TO EXTREME VALUES OF SOLUTION'
55     ENDIF
56    
57     RETURN
58     END

  ViewVC Help
Powered by ViewVC 1.1.22