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

Go to the source code of this file.

Functions/Subroutines

subroutine sensor_user_alloc (already_done, sensor_user_struct)

Function/Subroutine Documentation

◆ sensor_user_alloc()

subroutine sensor_user_alloc ( logical, intent(inout) already_done,
type(sensor_user_struct_), intent(inout) sensor_user_struct )

Definition at line 29 of file sensor_user_alloc.F.

30!$COMMENT
31! SENSOR_USER_ALLOC description
32! allocation of array for user sensor
33!
34! SENSOR_USER_ALLOC organization :
35!$endcomment
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE sensor_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C A n a l y s e M o d u l e
46C-----------------------------------------------
47#include "com04_c.inc"
48C-----------------------------------------------
49C D u m m y A r g u m e n t s
50C-----------------------------------------------
51 LOGICAL, INTENT(inout) :: ALREADY_DONE
52 TYPE(sensor_user_struct_), INTENT(inout) :: SENSOR_USER_STRUCT
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER :: SIZE_LOCAL
57! -------------------------------
58
59 already_done = .true.
60 sensor_user_struct%IS_USED = .true.
61
62 size_local = numnod
63 ALLOCATE( sensor_user_struct%NODE_LIST(size_local) )
64 ALLOCATE( sensor_user_struct%NODE_PER_PART_LIST(size_local) )
65
66 sensor_user_struct%NUMBER_NODE = size_local
67 sensor_user_struct%NUMBER_NODE_PER_PART = size_local
68
69 size_local = npart
70 ALLOCATE( sensor_user_struct%PART_LIST(size_local) )
71 sensor_user_struct%NUMBER_PART = size_local
72
73
74 RETURN