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

Go to the source code of this file.

Functions/Subroutines

integer function set_u_sens_spmd_node_list (array, size_array)

Function/Subroutine Documentation

◆ set_u_sens_spmd_node_list()

integer function set_u_sens_spmd_node_list ( integer, dimension(size_array), intent(in) array,
integer, intent(in) size_array )

Definition at line 28 of file set_u_sens_spmd_node_list.F.

29!$COMMENT
30! SET_U_SENS_SPMD_NODE_LIST description
31! user function : save in a Radioss buffer
32! a list of node
33!
34! SET_U_SENS_SPMD_NODE_LIST organization :
35! - check if the size of %NODE_LIST is sufficient
36! and reallocate the array if the size is not sufficient
37! - save the node in %NODE_LIST
38!$ENDCOMMENT
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42 USE user_interface_mod
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C A n a l y s e M o d u l e
49C-----------------------------------------------
50#include "com04_c.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER, INTENT(in) :: SIZE_ARRAY
55 INTEGER, DIMENSION(SIZE_ARRAY), INTENT(in) :: ARRAY
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER :: I,J
60 INTEGER, DIMENSION(:), ALLOCATABLE :: LOCAL_ARRAY
61! -------------------------------
62 j = sensor_user_struct%POINTER_NODE
63 DO i=1,size_array
64 j = j + 1
65 IF(j>sensor_user_struct%NUMBER_NODE) THEN
66 sensor_user_struct%NUMBER_NODE = sensor_user_struct%NUMBER_NODE + numnod
67 ALLOCATE( local_array(sensor_user_struct%NUMBER_NODE) )
68
69 local_array(1:j-1) = sensor_user_struct%NODE_LIST(j-1)
70
71 DEALLOCATE( sensor_user_struct%NODE_LIST )
72 ALLOCATE( sensor_user_struct%NODE_LIST( sensor_user_struct%NUMBER_NODE ) )
73
74 sensor_user_struct%NODE_LIST(1:j-1) = local_array(1:j-1)
75 sensor_user_struct%NODE_LIST(j:sensor_user_struct%NUMBER_NODE) = 0
76
77 DEALLOCATE( local_array )
78 ENDIF
79 sensor_user_struct%NODE_LIST(j) = array(i)
80 ENDDO
81
82 sensor_user_struct%POINTER_NODE = j
83
85 RETURN
integer function set_u_sens_spmd_node_list(array, size_array)