OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stop_sensor.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"
#include "com06_c.inc"
#include "com08_c.inc"
#include "scr07_c.inc"
#include "scr16_c.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine stop_sensor (sensors, h3d_data, dynain_data, output)

Function/Subroutine Documentation

◆ stop_sensor()

subroutine stop_sensor ( type (sensors_), intent(inout) sensors,
type (h3d_database), intent(inout) h3d_data,
type (dynain_database), intent(inout) dynain_data,
type(output_), intent(inout) output )
Parameters
[in,out]outputoutput structure

Definition at line 38 of file stop_sensor.F.

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
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