/[MITgcm]/MITgcm/pkg/debug/debug_msg.F
ViewVC logotype

Contents of /MITgcm/pkg/debug/debug_msg.F

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


Revision 1.5 - (show annotations) (download)
Wed Aug 24 02:45:36 2011 UTC (13 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.4: +24 -11 lines
add a call to flush standardMessageUnit (left commented out since
 not standard fortran)

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

  ViewVC Help
Powered by ViewVC 1.1.22