source: trunk/LMDZ.COMMON/libf/misc/j4save.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: 2.7 KB
Line 
1*DECK J4SAVE
2      FUNCTION J4SAVE (IWHICH, IVALUE, ISET)
3      IMPLICIT NONE
4C***BEGIN PROLOGUE  J4SAVE
5C***SUBSIDIARY
6C***PURPOSE  Save or recall global variables needed by error
7C            handling routines.
8C***LIBRARY   SLATEC (XERROR)
9C***TYPE      INTEGER (J4SAVE-I)
10C***KEYWORDS  ERROR MESSAGES, ERROR NUMBER, RECALL, SAVE, XERROR
11C***AUTHOR  Jones, R. E., (SNLA)
12C***DESCRIPTION
13C
14C     Abstract
15C        J4SAVE saves and recalls several global variables needed
16C        by the library error handling routines.
17C
18C     Description of Parameters
19C      --Input--
20C        IWHICH - Index of item desired.
21C                = 1 Refers to current error number.
22C                = 2 Refers to current error control flag.
23C                = 3 Refers to current unit number to which error
24C                    messages are to be sent.  (0 means use standard.)
25C                = 4 Refers to the maximum number of times any
26C                     message is to be printed (as set by XERMAX).
27C                = 5 Refers to the total number of units to which
28C                     each error message is to be written.
29C                = 6 Refers to the 2nd unit for error messages
30C                = 7 Refers to the 3rd unit for error messages
31C                = 8 Refers to the 4th unit for error messages
32C                = 9 Refers to the 5th unit for error messages
33C        IVALUE - The value to be set for the IWHICH-th parameter,
34C                 if ISET is .TRUE. .
35C        ISET   - If ISET=.TRUE., the IWHICH-th parameter will BE
36C                 given the value, IVALUE.  If ISET=.FALSE., the
37C                 IWHICH-th parameter will be unchanged, and IVALUE
38C                 is a dummy parameter.
39C      --Output--
40C        The (old) value of the IWHICH-th parameter will be returned
41C        in the function value, J4SAVE.
42C
43C***SEE ALSO  XERMSG
44C***REFERENCES  R. E. Jones and D. K. Kahaner, XERROR, the SLATEC
45C                 Error-handling Package, SAND82-0800, Sandia
46C                 Laboratories, 1982.
47C***ROUTINES CALLED  (NONE)
48C***REVISION HISTORY  (YYMMDD)
49C   790801  DATE WRITTEN
50C   891214  Prologue converted to Version 4.0 format.  (BAB)
51C   900205  Minor modifications to prologue.  (WRB)
52C   900402  Added TYPE section.  (WRB)
53C   910411  Added KEYWORDS section.  (WRB)
54C   920501  Reformatted the REFERENCES section.  (WRB)
55C***END PROLOGUE  J4SAVE
56      LOGICAL ISET
57      INTEGER IPARAM(9)
58      SAVE IPARAM
59      DATA IPARAM(1),IPARAM(2),IPARAM(3),IPARAM(4)/0,2,0,10/
60      DATA IPARAM(5)/1/
61      DATA IPARAM(6),IPARAM(7),IPARAM(8),IPARAM(9)/0,0,0,0/
62      INTEGER J4SAVE,IWHICH,IVALUE
63C***FIRST EXECUTABLE STATEMENT  J4SAVE
64      J4SAVE = IPARAM(IWHICH)
65      IF (ISET) IPARAM(IWHICH) = IVALUE
66      RETURN
67      END
Note: See TracBrowser for help on using the repository browser.