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!|| anim_mod ../common_source/modules/output/anim_mod.F
31!|| h3d_mod ../engine/share/modules/h3d_mod.F
32!|| imp_dyna ../engine/share/modules/impbufdef_mod.F
33!|| message_mod ../engine/share/message_module/message_mod.f
34!|| output_mod ../common_source/modules/output/output_mod.f90
35!|| sensor_mod ../common_source/modules/sensor_mod.F90
36!|| state_mod ../common_source/modules/state_mod.f
37!||====================================================================
38 SUBROUTINE stop_sensor(SENSORS ,H3D_DATA ,DYNAIN_DATA,OUTPUT)
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE imp_dyna
43 USE message_mod
44 USE h3d_mod
45 USE sensor_mod
46 USE anim_mod
47 USE state_mod
48 USE output_mod
49C-----------------------------------------------
50C I m p l i c i t T y p e s
51C-----------------------------------------------
52#include "implicit_f.inc"
53C-----------------------------------------------
54C C o m m o n B l o c k s
55C-----------------------------------------------
56#include "com01_c.inc"
57#include "com06_c.inc"
58#include "com08_c.inc"
59#include "scr07_c.inc"
60#include "scr16_c.inc"
61#include "task_c.inc"
62C-----------------------------------------------
63C D u m m y A r g u m e n t s
64C-----------------------------------------------
65 TYPE (SENSORS_) ,INTENT(INOUT) :: SENSORS
66 TYPE (H3D_DATABASE) ,INTENT(INOUT) :: H3D_DATA
67 TYPE (DYNAIN_DATABASE),INTENT(INOUT) :: DYNAIN_DATA
68 TYPE(OUTPUT_) ,INTENT(INOUT) :: OUTPUT !< output structure
69C-----------------------------------------------
70C L o c a l V a r i a b l e s
71C-----------------------------------------------
72 INTEGER :: I,J,ISENS
73C=======================================================================
74C /STOP/LSENSOR : set output timer flags after sensor activation
75C-----------------------------------------------
76 IF (sensors%NSTOP > 0 ) THEN
77 DO i=1,sensors%NSTOP
78 isens = sensors%STOP(i)
79 IF (sensors%SENSOR_TAB(isens)%STATUS == 1) THEN
80 IF(ispmd == 0)THEN
81 CALL ancmsg(msgid=234,anmode=aninfo,
82 . i1 = sensors%SENSOR_TAB(isens)%SENS_ID)
83 ENDIF
84
85 mstop=1 ! Stops the computation at the end of cycle
86 mrest = 1
87
88 IF (sensors%STOP_NSTH > 0) output%TH%THIS = tt
89 IF (sensors%STOP_NSANIM > 0) tanim = tt
90 IF (sensors%STOP_NSSTAT > 0) tstat = tt
91 IF (sensors%STOP_NSOUTP > 0) toutp = tt
92 IF (sensors%STOP_NSH3D > 0) h3d_data%TH3D = tt
93 IF (nsdynanin > 0) dynain_data%TDYNAIN = tt
94 IF (sensors%STOP_NSABF > 0) THEN !IF ABF FILE
95 DO j=1,10
96 IF (abfile(j) >= 0) THEN
97 tabfis(j) = tt
98 tabfwr(j) = tt
99 ENDIF
100 ENDDO
101 ENDIF
102 EXIT
103 ENDIF
104 ENDDO
105 ENDIF
106c-----------
107 RETURN
108 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:889
subroutine stop_sensor(sensors, h3d_data, dynain_data, output)
Definition stop_sensor.F:39