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

Go to the source code of this file.

Functions/Subroutines

subroutine set_merge_simple (set_entity, nb_set_entity, clause_entity, nb_clause_entity, result, nb_result, clause_operator)

Function/Subroutine Documentation

◆ set_merge_simple()

subroutine set_merge_simple ( integer, dimension(nb_set_entity), intent(in) set_entity,
integer, intent(in) nb_set_entity,
integer, dimension(nb_clause_entity), intent(in) clause_entity,
integer, intent(in) nb_clause_entity,
integer, dimension(*) result,
integer nb_result,
integer, intent(in) clause_operator )

Definition at line 38 of file set_merge_simple.F.

42C-----------------------------------------------
43C ROUTINE DESCRIPTION :
44C ===================
45C Apply Operators on simple set
46C-----------------------------------------------
47C DUMMY ARGUMENTS DESCRIPTION:
48C ===================
49C
50C NAME DESCRIPTION
51C
52C SET_ENTITY, NB_SET_ENTITY : Current SET
53C CLAUSE_ENTITY, NB_CLAUSE_ENTITY : Clause to merge
54C RESULT , NB_RESULT : Stores the result
55C CLAUSE_OPERATOR OPERATOR
56C============================================================================
57C-----------------------------------------------
58C D e f i n i t i o n s
59C-----------------------------------------------
60C-----------------------------------------------
61C M o d u l e s
62C-----------------------------------------------
64C-----------------------------------------------
65C I m p l i c i t T y p e s
66C-----------------------------------------------
67#include "implicit_f.inc"
68C-----------------------------------------------
69C D u m m y A r g u m e n t s
70C-----------------------------------------------
71 INTEGER, INTENT(IN) :: NB_SET_ENTITY, NB_CLAUSE_ENTITY, CLAUSE_OPERATOR
72
73 INTEGER, DIMENSION(NB_SET_ENTITY), INTENT(IN) :: SET_ENTITY
74 INTEGER, DIMENSION(NB_CLAUSE_ENTITY), INTENT(IN) :: CLAUSE_ENTITY
75
76 INTEGER :: NB_RESULT
77 INTEGER RESULT(*)
78
79 IF( clause_operator == set_add) THEN
80 CALL union_2_sorted_sets( set_entity, nb_set_entity ,
81 * clause_entity, nb_clause_entity ,
82 * result, nb_result )
83 ENDIF
84
85 IF( clause_operator == set_delete) THEN
86 CALL difference_2_sorted_sets ( set_entity, nb_set_entity ,
87 * clause_entity, nb_clause_entity ,
88 * result, nb_result )
89 ENDIF
90
91 IF( clause_operator == set_intersect) THEN
92 CALL intersect_2_sorted_sets ( set_entity, nb_set_entity ,
93 * clause_entity, nb_clause_entity ,
94 * result, nb_result )
95 ENDIF
96
integer, parameter set_add
add operator
Definition set_mod.F:47
integer, parameter set_intersect
intersection operator
Definition set_mod.F:49
integer, parameter set_delete
delete operator
Definition set_mod.F:48