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

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

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


Revision 1.2 - (show annotations) (download)
Mon Dec 15 02:13:13 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52j_post, checkpoint52e_post, hrcube_1, checkpoint52l_post, checkpoint52k_post, checkpoint52d_post, checkpoint52f_post, hrcube5, checkpoint52i_post, checkpoint52j_pre, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3
Changes since 1.1: +4 -2 lines
avoid calling "eedie" in multi-components set-up (using MPI).

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

  ViewVC Help
Powered by ViewVC 1.1.22