OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
arret.F File Reference
#include "implicit_f.inc"
#include "units_c.inc"
#include "titr_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine arret (nn)

Function/Subroutine Documentation

◆ arret()

subroutine arret ( integer nn)

Definition at line 86 of file arret.F.

87 USE message_mod
88C-----------------------------------------------
89C I m p l i c i t T y p e s
90C-----------------------------------------------
91#include "implicit_f.inc"
92C-----------------------------------------------
93C D u m m y A r g u m e n t s
94C-----------------------------------------------
95 INTEGER NN
96C-----------------------------------------------
97C C o m m o n B l o c k s
98C-----------------------------------------------
99#include "units_c.inc"
100#include "titr_c.inc"
101C-----------------------------------------------
102C L o c a l V a r i a b l e s
103C-----------------------------------------------
104 INTEGER N
105 INTEGER EXIT_VALUE
106#ifdef DNC
107 CALL starter_lic_release()
108#endif
109 n=nn
110 !-------------------------!
111 ! ARRET DU CALCUL !
112 !-------------------------!
113 IF(n==2 .OR. n==3) THEN
114 WRITE(istdo,1000)
115 WRITE(iout,1000)
116 1000 FORMAT(//,' RADIOSS STOP DUE TO INPUT ERROR')
117 ENDIF
118
119 IF(n/=3 .AND. ierr>0)n=2
120
121C-----------------------------------------------
122C Summary Errors/Warnings
123C-----------------------------------------------
124 CALL summsg()
125C-----------------------------------------------
126
127 IF(n==2) THEN
128 ierr=max0(ierr,1)
129 WRITE(istdo,'(///A/A/,5X,I10,A)')titre(7)(1:40),titre(5),ierr,titre(7)(41:60)
130 WRITE(iout ,'(///A/A/,5X,I10,A)')titre(7)(1:40),titre(5),ierr,titre(7)(41:60)
131 ENDIF
132
133 IF(n==1.OR.iwarn>0) THEN
134 IF(iwarn==0) THEN
135 WRITE(istdo,'(///A/A)')titre(6),titre(5)
136 WRITE(iout ,'(///A/A)')titre(6),titre(5)
137 ELSE
138 WRITE(istdo,'(///A/A/,5X,I10,A)')titre(8)(1:40),titre(5),iwarn,titre(8)(41:60)
139 WRITE(iout ,'(///A/A/,5X,I10,A)')titre(8)(1:40),titre(5),iwarn,titre(8)(41:60)
140 ENDIF
141 ENDIF
142 CLOSE (unit=iout)
143
144
145 IF(n == 2.OR. n ==3 )THEN
146 CALL my_exit(n)
147 ELSE
148 exit_value=0
149 CALL my_exit(exit_value)
150 ENDIF
void my_exit(int *i)
Definition analyse.c:1038
subroutine summsg()
Definition summsg.F:33