OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sensor_logical.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "com04_c.inc"

Go to the source code of this file.

Macros

#define SENS_SENS   3
#define SENS_AND   4
#define SENS_OR   5
#define SENS_NOT   8

Functions/Subroutines

subroutine sensor_logical (sensors)

Macro Definition Documentation

◆ SENS_AND

#define SENS_AND   4

◆ SENS_NOT

#define SENS_NOT   8

◆ SENS_OR

#define SENS_OR   5

◆ SENS_SENS

#define SENS_SENS   3

Function/Subroutine Documentation

◆ sensor_logical()

subroutine sensor_logical ( type (sensors_), intent(inout) sensors)

Definition at line 37 of file sensor_logical.F.

38C-----------------------------------------------
39C M a c r o s
40C-----------------------------------------------
41#define SENS_SENS 3
42#define SENS_AND 4
43#define SENS_OR 5
44#define SENS_NOT 8
45C-----------------------------------------------
46C M o d u l e s
47C-----------------------------------------------
48 USE sensor_mod
49 USE message_mod
50C-----------------------------------------------
51C I m p l i c i t T y p e s
52C-----------------------------------------------
53#include "implicit_f.inc"
54#include "comlock.inc"
55C-----------------------------------------------
56C C o m m o n B l o c k s
57C-----------------------------------------------
58#include "com04_c.inc"
59C-----------------------------------------------
60C D u m m y A r g u m e n t s
61C-----------------------------------------------
62 TYPE (SENSORS_) ,INTENT(INOUT) :: SENSORS
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER :: I,K,TYP
67C=======================================================================
68 DO i = 1, sensors%LOGICAL_SENSOR_COUNT
69
70 k = sensors%LOGICAL_SENSORS_LIST(i)
71 typ = sensors%SENSOR_TAB(k)%TYPE
72C--------------------------------
73 SELECT CASE(typ)
74
75 CASE (sens_sens)
76
77 CALL sensor_sens(sensors%NSENSOR,sensors%SENSOR_TAB,k)
78
79 CASE (sens_and)
80
81 CALL sensor_and(sensors%NSENSOR,sensors%SENSOR_TAB,k)
82c
83 CASE (sens_or)
84
85 CALL sensor_or(sensors%NSENSOR,sensors%SENSOR_TAB,k)
86c
87 CASE (sens_not)
88
89 CALL sensor_not(sensors%NSENSOR,sensors%SENSOR_TAB,k)
90 END SELECT
91C-----------------------------------------------------------------------
92 ENDDO
93C-----------
94 RETURN
subroutine sensor_and(nsensor, sensor_tab, sens)
Definition sensor_and.F:31
subroutine sensor_not(nsensor, sensor_tab, sens)
Definition sensor_not.F:31
subroutine sensor_or(nsensor, sensor_tab, sens)
Definition sensor_or.F:31
subroutine sensor_sens(nsensor, sensor_tab, sens)
Definition sensor_sens.F:31