source: trunk/LMDZ.COMMON/libf/misc/xgetua.F @ 3452

Last change on this file since 3452 was 1391, checked in by emillour, 10 years ago

Common dynamical core:
Updates in the dynamics to keeup up with updates in LMDZ5
(up to LMDZ5 trunk rev 2200):

  • compilation:
  • create_make_gcm : added processing of .f & .f90 files (not just .F and .F90)
  • makelmdz: add "mix" option for -io (ouptut with both IOIPSL and XIOS)
  • makelmdz_fcm: add "mix" option for -io
  • filtrez:
  • acc.F and eigen.F : add "implicit none" and variable declarations
  • bibio:
  • handle_err_m.F90: replace "stop" with call to abort_gcm()
  • i1mach.F, j4save.F: add "implicit none" and variable declarations
  • xercnt.F, xermsg.F, xerprn.F, xersve.F, xgetua.F: add "implicit none" and variable declarations
  • dyn3d_common:
  • disvert.F90 : added comments on meaning of "pa" variable
  • grid_atob.F : better control on level of default ouputs
  • infotrac.F90: update Earth-specific stuff (nqo water tracers)
  • interpre.F: correction on the size of input array w
  • juldate.F, massbar.F, ppm3d.F, ran1.F: add "implicit none" and variable declarations
  • sortvarc.F: code cleanup
  • iniacademic.F90: cleanup and extra sanity check.
  • dyn3d:
  • abort_gcm.F: additions for XIOS
  • conf_gcm.F90: transformed to free form from conf_gcm.F
  • gcm.F: added test to check that iphysiq is a multiple of iperiod
  • getparam.F90, guidz_mod.F: update from LMDZ5
  • integrd.F: replace stop with call_abort()
  • dyn3dpar:
  • abort_gcm.F: minor cleanup
  • gcm.F: added test to check that iphysiq is a multiple of iperiod
  • getparam.F90, guide_p_mod.F90: update from LMDZ5
  • integrd_p.F: abort with call_abort when there is negative surface pressure
  • leapfrog_p.F: add INCA specific stuff to keep up with current LMDZ5
  • conf_gcm.F90: transformed to free form from conf_gcm.F

EM

File size: 1.9 KB
Line 
1*DECK XGETUA
2      SUBROUTINE XGETUA (IUNITA, N)
3      IMPLICIT NONE
4C***BEGIN PROLOGUE  XGETUA
5C***PURPOSE  Return unit number(s) to which error messages are being
6C            sent.
7C***LIBRARY   SLATEC (XERROR)
8C***CATEGORY  R3C
9C***TYPE      ALL (XGETUA-A)
10C***KEYWORDS  ERROR, XERROR
11C***AUTHOR  Jones, R. E., (SNLA)
12C***DESCRIPTION
13C
14C     Abstract
15C        XGETUA may be called to determine the unit number or numbers
16C        to which error messages are being sent.
17C        These unit numbers may have been set by a call to XSETUN,
18C        or a call to XSETUA, or may be a default value.
19C
20C     Description of Parameters
21C      --Output--
22C        IUNIT - an array of one to five unit numbers, depending
23C                on the value of N.  A value of zero refers to the
24C                default unit, as defined by the I1MACH machine
25C                constant routine.  Only IUNIT(1),...,IUNIT(N) are
26C                defined by XGETUA.  The values of IUNIT(N+1),...,
27C                IUNIT(5) are not defined (for N .LT. 5) or altered
28C                in any way by XGETUA.
29C        N     - the number of units to which copies of the
30C                error messages are being sent.  N will be in the
31C                range from 1 to 5.
32C
33C***REFERENCES  R. E. Jones and D. K. Kahaner, XERROR, the SLATEC
34C                 Error-handling Package, SAND82-0800, Sandia
35C                 Laboratories, 1982.
36C***ROUTINES CALLED  J4SAVE
37C***REVISION HISTORY  (YYMMDD)
38C   790801  DATE WRITTEN
39C   861211  REVISION DATE from Version 3.2
40C   891214  Prologue converted to Version 4.0 format.  (BAB)
41C   920501  Reformatted the REFERENCES section.  (WRB)
42C***END PROLOGUE  XGETUA
43      DIMENSION IUNITA(5)
44      INTEGER IUNITA, N, J4SAVE, INDEX, I
45C***FIRST EXECUTABLE STATEMENT  XGETUA
46      N = J4SAVE(5,0,.FALSE.)
47      DO 30 I=1,N
48         INDEX = I+4
49         IF (I.EQ.1) INDEX = 3
50         IUNITA(I) = J4SAVE(INDEX,0,.FALSE.)
51   30 CONTINUE
52      RETURN
53      END
Note: See TracBrowser for help on using the repository browser.