source: CPL/oasis3/trunk/src/mod/oasis3/src/modsgc.F @ 1677

Last change on this file since 1677 was 1677, checked in by aclsce, 12 years ago

Imported oasis3 (tag ipslcm5a) from cvs server to svn server (igcmg project).

File size: 2.8 KB
Line 
1      SUBROUTINE modsgc
2C****
3C               *****************************
4C               * OASIS ROUTINE  -  LEVEL C *
5C               * -------------     ------- *
6C               *****************************
7C
8C**** *modsgc*  - Change sigcld handler
9C
10C     Purpose:
11C     -------
12C     Modify sigcld handler before signals are sent for the last time.
13C     Use fsigctl (PIPE-CRAY case) or signal (SIPC case)
14C     calls to change sigcld signal handler.
15C     This is done to avoid a recursive I/O error.
16C
17C**   Interface:
18C     ---------
19C       *CALL*  *modsgc*
20C
21C     Input:
22C     -----
23C     None
24C
25C     Output:
26C     ------
27C     None
28C
29C     Workspace:
30C     ---------
31C     None
32C
33C     Externals:
34C     ---------
35C     fsigctl, signal
36C
37C     Reference:
38C     ---------
39C     See OASIS manual (1997)
40C
41C     History:
42C     -------
43C       Version   Programmer     Date      Description
44C       -------   ----------     ----      ----------- 
45C       1.0       L. Terray      94/01/01  created
46C       2.0       L. Terray      95/10/01  modified: new structure
47C       2.2       S. Valcke, L.T 97/11/13  Added: call signal
48C       2.3       S. Valcke      99/04/30  added: printing levels
49C       2.5       S. Valcke      2K/09/04  Remove cmach
50C
51C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52C
53C* ---------------------------- Include files ---------------------------
54C
55      USE mod_unit
56      USE mod_hardware
57      USE mod_printing
58C
59C* ---------------------------- External declarations -------------------
60C
61      EXTERNAL ferror
62C
63C* ---------------------------- Poema verses ----------------------------
64C
65C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66C
67C*    1. Initialization
68C        --------------
69C
70      IF (nlogprt .GE. 2) THEN
71          WRITE (UNIT = nulou,FMT = *) ' '
72          WRITE (UNIT = nulou,FMT = *) ' '
73          WRITE (UNIT = nulou,FMT = *) 
74     $    '           ROUTINE modsgc  -  Level C'
75          WRITE (UNIT = nulou,FMT = *) 
76     $    '           **************     *******'
77          WRITE (UNIT = nulou,FMT = *) ' '
78          WRITE (UNIT = nulou,FMT = *) ' Change sigcld handler     '
79          WRITE (UNIT = nulou,FMT = *) ' '
80          WRITE (UNIT = nulou,FMT = *) ' '
81      ENDIF
82C
83C
84C*    2. Modify sigcld signal handler in PIPE or SIPC case
85C        -------------------------------------------------
86C
87#ifdef use_comm_PIPE
88          CALL fsigctl ('IGNORE','SIGCLD',0)
89#elif defined use_comm_SIPC
90          CALL cldignore
91#endif
92C
93C
94C*    3. End of routine
95C        --------------
96C
97      IF (nlogprt .GE. 2) THEN
98          WRITE (UNIT = nulou,FMT = *) ' '
99          WRITE (UNIT = nulou,FMT = *) 
100     $    '          --------- End of routine modsgc ---------'
101          CALL FLUSH (nulou)
102      ENDIF
103      RETURN
104      END
105
106
107
Note: See TracBrowser for help on using the repository browser.