forked from altMITgcm/MITgcm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mon_set_iounit.F
41 lines (31 loc) · 937 Bytes
/
mon_set_iounit.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
C $Header: /u/gcmpack/MITgcm/pkg/monitor/mon_set_iounit.F,v 1.4 2009/08/12 22:11:17 jmc Exp $
C $Name: $
#include "MONITOR_OPTIONS.h"
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
CBOP
C !ROUTINE: MON_SET_IOUNIT
C !INTERFACE:
SUBROUTINE MON_SET_IOUNIT( monUnit, myThid )
C !DESCRIPTION:
C Set default monitor unit for I/O.
C !USES:
IMPLICIT NONE
#include "SIZE.h"
#include "EEPARAMS.h"
#include "MONITOR.h"
C !INPUT PARAMETERS:
C monUnit :: Unit number to use for monitor output
C myThid :: Instance number of this call to monitor
INTEGER monUnit
INTEGER myThid
CEOP
C Dont change before everyone is ready
CALL BAR2( myThid )
C Set monitor I/O unit
_BEGIN_MASTER(myThid)
mon_ioUnit = monUnit
_END_MASTER(myThid)
C Make sure everyone sees the change
CALL BAR2( myThid )
RETURN
END