1 |
C $Header: /u/gcmpack/MITgcm/model/src/state_summary.F,v 1.7 2001/09/26 18:09:16 cnh Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: STATE_SUMMARY |
8 |
C !INTERFACE: |
9 |
SUBROUTINE STATE_SUMMARY( myThid ) |
10 |
|
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 |
IMPLICIT NONE |
29 |
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 |
C !INPUT/OUTPUT PARAMETERS: |
37 |
C == Routine arguments == |
38 |
C myThid - Number of this instance of STATE_SUMMARY |
39 |
INTEGER myThid |
40 |
|
41 |
C !LOCAL VARIABLES: |
42 |
C == Local variables == |
43 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
44 |
CEOP |
45 |
|
46 |
_BEGIN_MASTER(myThid) |
47 |
WRITE(msgBuf,'(A)') |
48 |
&'// =======================================================' |
49 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
50 |
& SQUEEZE_RIGHT , myThid ) |
51 |
WRITE(msgBuf,'(A)') '// Model current state' |
52 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
53 |
& SQUEEZE_RIGHT , myThid ) |
54 |
WRITE(msgBuf,'(A)') |
55 |
&'// =======================================================' |
56 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
57 |
& SQUEEZE_RIGHT , myThid ) |
58 |
WRITE(msgBuf,'(A)') ' ' |
59 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
60 |
& SQUEEZE_RIGHT , myThid ) |
61 |
_END_MASTER(myThid) |
62 |
|
63 |
RETURN |
64 |
END |