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 85 of file arret.F.

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