1 |
cnh |
1.7 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/state_summary.F,v 1.6 2001/02/04 14:38:48 cnh Exp $ |
2 |
|
|
C $Name: $ |
3 |
cnh |
1.1 |
|
4 |
cnh |
1.4 |
#include "CPP_OPTIONS.h" |
5 |
cnh |
1.1 |
|
6 |
cnh |
1.7 |
CBOP |
7 |
|
|
C !ROUTINE: STATE_SUMMARY |
8 |
|
|
C !INTERFACE: |
9 |
cnh |
1.1 |
SUBROUTINE STATE_SUMMARY( myThid ) |
10 |
cnh |
1.7 |
|
11 |
|
|
C !DESCRIPTION: \bv |
12 |
|
|
C *==========================================================* |
13 |
|
|
C | SUBROUTINE STATE_SUMMARY |
14 |
|
|
C | o Summarize model prognostic variables. |
15 |
|
|
C *==========================================================* |
16 |
|
|
C | This routine can be called at any time during an |
17 |
|
|
C | integration to provide a summary of the model state. |
18 |
|
|
C | Note |
19 |
|
|
C | 1. Under multi-process parallelism the state summary |
20 |
|
|
C | is only given for the per-process data. |
21 |
|
|
C | 2. Under multi-threading the summary is produced by |
22 |
|
|
C | the master thread. This threads reads data managed by |
23 |
|
|
C | other threads. |
24 |
|
|
C *==========================================================* |
25 |
|
|
C \ev |
26 |
|
|
|
27 |
|
|
C !USES: |
28 |
adcroft |
1.5 |
IMPLICIT NONE |
29 |
cnh |
1.1 |
C === Global variables === |
30 |
|
|
#include "SIZE.h" |
31 |
|
|
#include "EEPARAMS.h" |
32 |
|
|
#include "PARAMS.h" |
33 |
|
|
#include "GRID.h" |
34 |
|
|
#include "DYNVARS.h" |
35 |
|
|
|
36 |
cnh |
1.7 |
C !INPUT/OUTPUT PARAMETERS: |
37 |
cnh |
1.1 |
C == Routine arguments == |
38 |
|
|
C myThid - Number of this instance of STATE_SUMMARY |
39 |
|
|
INTEGER myThid |
40 |
|
|
|
41 |
cnh |
1.7 |
C !LOCAL VARIABLES: |
42 |
cnh |
1.1 |
C == Local variables == |
43 |
|
|
CHARACTER*(MAX_LEN_MBUF) msgBuf |
44 |
cnh |
1.7 |
CEOP |
45 |
cnh |
1.1 |
|
46 |
|
|
_BARRIER |
47 |
|
|
|
48 |
|
|
_BEGIN_MASTER(myThid) |
49 |
|
|
WRITE(msgBuf,'(A)') |
50 |
|
|
&'// =======================================================' |
51 |
cnh |
1.3 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
52 |
|
|
& SQUEEZE_RIGHT , 1) |
53 |
cnh |
1.1 |
WRITE(msgBuf,'(A)') '// Model current state' |
54 |
cnh |
1.3 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
55 |
|
|
& SQUEEZE_RIGHT , 1) |
56 |
cnh |
1.1 |
WRITE(msgBuf,'(A)') |
57 |
|
|
&'// =======================================================' |
58 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
59 |
|
|
& SQUEEZE_RIGHT , 1) |
60 |
|
|
WRITE(msgBuf,'(A)') ' ' |
61 |
|
|
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
62 |
|
|
& SQUEEZE_RIGHT , 1) |
63 |
|
|
_END_MASTER(myThid) |
64 |
|
|
|
65 |
|
|
_BARRIER |
66 |
|
|
|
67 |
|
|
|
68 |
|
|
RETURN |
69 |
|
|
END |
70 |
|
|
|