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 37 of file stop_sensor.F.

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