1 |
C $Header: /u/gcmpack/MITgcm/pkg/debug/debug_msg.F,v 1.4 2004/12/14 16:54:08 edhill Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "DEBUG_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: DEBUG_MSG |
8 |
C !INTERFACE: |
9 |
SUBROUTINE DEBUG_MSG( |
10 |
I text, |
11 |
I myThid ) |
12 |
|
13 |
C !DESCRIPTION: \bv |
14 |
C *==========================================================* |
15 |
C | SUBROUTINE DEBUG_MSG |
16 |
C | o Prints to STDOUT the text argument |
17 |
C *==========================================================* |
18 |
C \ev |
19 |
|
20 |
C !USES: |
21 |
IMPLICIT NONE |
22 |
|
23 |
C === Global data === |
24 |
#include "SIZE.h" |
25 |
#include "EEPARAMS.h" |
26 |
|
27 |
C !INPUT/OUTPUT PARAMETERS: |
28 |
C text :: test to write |
29 |
C myThid :: my Thread Id number |
30 |
CHARACTER*(*) text |
31 |
INTEGER myThid |
32 |
|
33 |
C !LOCAL VARIABLES: |
34 |
C msgBuf :: Informational/error message buffer |
35 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
36 |
CEOP |
37 |
|
38 |
_BEGIN_MASTER( myThid ) |
39 |
WRITE(msgBuf,'(A11,A60)') 'DEBUG_MSG: ',text |
40 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
41 |
& SQUEEZE_RIGHT, myThid ) |
42 |
C- can be usefull to flush the io unit (but not standard f77) |
43 |
c CALL FLUSH(standardMessageUnit) |
44 |
_END_MASTER( myThid ) |
45 |
|
46 |
RETURN |
47 |
END |