#include "implicit_f.inc"
#include "com04_c.inc"
Go to the source code of this file.
◆ 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
31
32
33
34
35!$endcomment
36
37
38
39 USE sensor_mod
40
41
42
43#include "implicit_f.inc"
44
45
46
47#include "com04_c.inc"
48
49
50
51 LOGICAL, INTENT(inout) :: ALREADY_DONE
52 TYPE(sensor_user_struct_), INTENT(inout) :: SENSOR_USER_STRUCT
53
54
55
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