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

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

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


Revision 1.1.2.1 - (show annotations) (download)
Tue Jun 24 23:10:27 2003 UTC (21 years ago) by heimbach
Branch: ecco-branch
CVS Tags: ecco_c51_e34e, ecco_c51_e34b, ecco_c51_e34c, ecco_c51_e34a, ecco_c51_e34f, ecco_c51_e34, ecco_c51_e34g, ecco_c51_e34d
Changes since 1.1: +2 -2 lines
Merging from c51

1 C $Header: /u/gcmpack/MITgcm/pkg/monitor/mon_set_pref.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_SET_PREF(prefString, myThid )
7 C /==========================================================\
8 C | SUBROUTINE MON_SET_PREF |
9 C | o Set default monitor prefix string. |
10 C \==========================================================/
11 IMPLICIT NONE
12
13 C === Global data ===
14 #include "SIZE.h"
15 #include "EEPARAMS.h"
16 #include "MONITOR.h"
17
18 EXTERNAL IFNBLNK, ILNBLNK
19 INTEGER IFNBLNK, ILNBLNK
20
21 C === Routine arguments ===
22 C prefString - String to use for prefixing monitor output
23 C myThid - Instance number of this call to monitor
24 CHARACTER*(*) prefString
25 INTEGER myThid
26
27 C === Local variables ===
28 C I0, I1 - String first and last indices
29 C IL - String length
30 INTEGER I0, I1
31 INTEGER IL
32
33 C Dont change before everyone is ready
34 CALL BAR2( myThid )
35
36 C Set monitor I/O unit
37 I0 = IFNBLNK( prefString )
38 I1 = ILNBLNK( prefString )
39 IL = I1-I0+1
40 IF ( IL .LE. MAX_LEN_MBUF ) THEN
41 mon_pref = ' '
42 mon_prefL = IL
43 mon_pref(1:IL) = prefString(I0:I1)
44 ENDIF
45
46 C Make sure everyone sees the change
47 CALL BAR2( myThid )
48
49 RETURN
50 END

  ViewVC Help
Powered by ViewVC 1.1.22