C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/monitor/mon_set_iounit.F,v 1.3 2006/10/17 19:01:48 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(unit, 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 unit - Unit number to use for monitor output C myThid - Instance number of this call to monitor INTEGER unit INTEGER myThid CEOP C Dont change before everyone is ready CALL BAR2( myThid ) C Set monitor I/O unit _BEGIN_MASTER(myThid) mon_ioUnit = unit _END_MASTER(myThid) C Make sure everyone sees the change CALL BAR2( myThid ) RETURN END