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

Go to the source code of this file.

Functions/Subroutines

subroutine count_nb_elem_edge (mode, size_buffer, buffer, shoot_struct, chunk)

Function/Subroutine Documentation

◆ count_nb_elem_edge()

subroutine count_nb_elem_edge ( integer mode,
integer, intent(in) size_buffer,
integer, dimension(size_buffer), intent(inout) buffer,
type(shooting_node_type), intent(inout) shoot_struct,
integer, intent(in) chunk )

Definition at line 30 of file count_nb_elem_edge.F.

31!$COMMENT
32! COUNT_NB_ELEM_EDGE description
33! count the number of element associated to an edge
34! mode=1 : secondary node / mode=2 : main node
35! COUNT_NB_ELEM_EDGE organization
36!$ENDCOMMENT
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER :: MODE ! mode = 1 --> main node / mode = 2 --> secondary node
46 INTEGER, INTENT(in) :: CHUNK ! chunk size : 1-> interface id, 2-> surface id, 3:6-> node id (for type11, 5&6 values are equal to 0)
47 TYPE(shooting_node_type), INTENT(inout) :: SHOOT_STRUCT ! structure for shooting node algo
48 INTEGER, INTENT(in) :: SIZE_BUFFER ! size of buffer array
49 INTEGER, DIMENSION(SIZE_BUFFER), INTENT(inout) :: BUFFER ! list of nin/edge id/number of remote element
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER :: I
54 INTEGER :: NIN
55 INTEGER :: IRECT_ID,NB_REMOTE_ELEM
56C-----------------------------------------------
57
58 DO i=1,size_buffer,chunk
59 nin = buffer(i)
60 irect_id = buffer(i+1)
61 nb_remote_elem = buffer(i+2)
62 IF(mode==1) THEN
63 shoot_struct%INTER(nin)%REMOTE_ELM_M(irect_id) = shoot_struct%INTER(nin)%REMOTE_ELM_M(irect_id) + nb_remote_elem
64 ELSE
65 shoot_struct%INTER(nin)%REMOTE_ELM_S(irect_id) = shoot_struct%INTER(nin)%REMOTE_ELM_S(irect_id) + nb_remote_elem
66 ENDIF
67 ENDDO
68
69 RETURN