OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stop_sensor.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| stop_sensor ../engine/source/tools/sensor/stop_sensor.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| ancmsg ../engine/source/output/message/message.F
29!||--- uses -----------------------------------------------------
30!|| h3d_mod ../engine/share/modules/h3d_mod.F
31!|| imp_dyna ../engine/share/modules/impbufdef_mod.F
32!|| message_mod ../engine/share/message_module/message_mod.F
33!|| output_mod ../common_source/modules/output/output_mod.F90
34!|| sensor_mod ../common_source/modules/sensor_mod.F90
35!|| state_mod ../common_source/modules/state_mod.F
36!||====================================================================
37 SUBROUTINE stop_sensor(SENSORS ,H3D_DATA ,DYNAIN_DATA,OUTPUT)
38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
41 USE imp_dyna
42 USE message_mod
43 USE h3d_mod
44 USE sensor_mod
45 USE output_mod
46 USE state_mod
47 USE output_mod
48C-----------------------------------------------
49C I m p l i c i t T y p e s
50C-----------------------------------------------
51#include "implicit_f.inc"
52C-----------------------------------------------
53C C o m m o n B l o c k s
54C-----------------------------------------------
55#include "com01_c.inc"
56#include "com06_c.inc"
57#include "com08_c.inc"
58#include "scr07_c.inc"
59#include "scr16_c.inc"
60#include "task_c.inc"
61C-----------------------------------------------
62C D u m m y A r g u m e n t s
63C-----------------------------------------------
64 TYPE (sensors_) ,INTENT(INOUT) :: sensors
65 TYPE (H3D_DATABASE) ,INTENT(INOUT) :: H3D_DATA
66 TYPE (DYNAIN_DATABASE),INTENT(INOUT) :: DYNAIN_DATA
67 TYPE(output_) ,INTENT(INOUT) :: OUTPUT !< output structure
68C-----------------------------------------------
69C L o c a l V a r i a b l e s
70C-----------------------------------------------
71 INTEGER :: I,J,ISENS
72C=======================================================================
73C /STOP/LSENSOR : set output timer flags after sensor activation
74C-----------------------------------------------
75 IF (sensors%NSTOP > 0 ) THEN
76 DO i=1,sensors%NSTOP
77 isens = sensors%STOP(i)
78 IF (sensors%SENSOR_TAB(isens)%STATUS == 1) THEN
79 IF(ispmd == 0)THEN
80 CALL ancmsg(msgid=234,anmode=aninfo,
81 . i1 = sensors%SENSOR_TAB(isens)%SENS_ID)
82 ENDIF
83
84 mstop=1 ! Stops the computation at the end of cycle
85 mrest = 1
86
87 IF (sensors%STOP_NSTH > 0) output%TH%THIS = tt
88 IF (sensors%STOP_NSANIM > 0) output%TANIM = tt
89 IF (sensors%STOP_NSSTAT > 0) tstat = tt
90 IF (sensors%STOP_NSOUTP > 0) toutp = tt
91 IF (sensors%STOP_NSH3D > 0) h3d_data%TH3D = tt
92 IF (nsdynanin > 0) dynain_data%TDYNAIN = tt
93 IF (sensors%STOP_NSABF > 0) THEN !IF ABF FILE
94 DO j=1,10
95 IF (abfile(j) >= 0) THEN
96 tabfis(j) = tt
97 tabfwr(j) = tt
98 ENDIF
99 ENDDO
100 ENDIF
101 EXIT
102 ENDIF
103 ENDDO
104 ENDIF
105c-----------
106 RETURN
107 END
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:895
subroutine stop_sensor(sensors, h3d_data, dynain_data, output)
Definition stop_sensor.F:38