29
30
31
32
33
34
35
36
37
38
39
40
41 USE user_interface_mod
42
43
44
45#include "implicit_f.inc"
46
47
48
49#include "com04_c.inc"
50
51
52
53 INTEGER, INTENT(in) :: SIZE_ARRAY
54 INTEGER, DIMENSION(SIZE_ARRAY), INTENT(in) :: ARRAY
55
56
57
58 INTEGER :: I,J
59 INTEGER, DIMENSION(:), ALLOCATABLE :: LOCAL_ARRAY
60
61 j = sensor_user_struct%POINTER_NODE
62 DO i=1,size_array
63 j = j + 1
64 IF(j>sensor_user_struct%NUMBER_NODE) THEN
65 sensor_user_struct%NUMBER_NODE = sensor_user_struct%NUMBER_NODE + numnod
66 ALLOCATE( local_array(sensor_user_struct%NUMBER_NODE) )
67
68 local_array(1:j-1) = sensor_user_struct%NODE_LIST(j-1)
69
70 DEALLOCATE( sensor_user_struct%NODE_LIST )
71 ALLOCATE( sensor_user_struct%NODE_LIST( sensor_user_struct%NUMBER_NODE ) )
72
73 sensor_user_struct%NODE_LIST(1:j-1) = local_array(1:j-1)
74 sensor_user_struct%NODE_LIST(j:sensor_user_struct%NUMBER_NODE) = 0
75
76 DEALLOCATE( local_array )
77 ENDIF
78 sensor_user_struct%NODE_LIST(j) = array(i)
79 ENDDO
80
81 sensor_user_struct%POINTER_NODE = j
82
84 RETURN
integer function set_u_sens_spmd_node_list(array, size_array)