OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i25free_bound.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| i25free_bound ../engine/source/interfaces/int25/i25free_bound.f
25!||--- called by ------------------------------------------------------
26!|| i25main_free ../engine/source/interfaces/intsort/i25main_free.F
27!|| spmd_i25front_init ../engine/source/mpi/interfaces/spmd_i25front.F
28!||--- uses -----------------------------------------------------
29!|| debug_mod ../engine/share/modules/debug_mod.F
30!||====================================================================
31 SUBROUTINE i25free_bound(
32 . NRTM,
33 . MVOISIN,
34 . IRECT,
35 . STIFM,
36 . NRTM_FREE,
37 . FREE_IRECT_ID)
38C Get the list of free IRECT (i.e. at least one edge is at the boundary)
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42#ifdef WITH_ASSERT
43 USE debug_mod
44#endif
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER, INTENT(IN) :: NRTM
53 INTEGER, INTENT(IN) :: MVOISIN(4,NRTM),IRECT(4,NRTM)
54 my_real, INTENT(IN) :: STIFM(NRTM)
55 INTEGER, INTENT(INOUT) :: NRTM_FREE ! out: number of free irect
56 INTEGER, INTENT(INOUT) :: FREE_IRECT_ID(NRTM)! [out] max size = NRTM, list of free irect
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER :: IRM,IEDG
61 LOGICAL :: FREE
62
63 nrtm_free= 0
64 DO irm=1,nrtm
65 IF(stifm(irm)<=zero)cycle
66 free = .false.
67 DO iedg=1,4
68 IF( mvoisin(iedg,irm)==0 )THEN
69 IF(.NOT.(irect(3,irm)==irect(4,irm).AND.iedg==3))THEN
70 free = .true.
71 ENDIF
72 ENDIF
73 ENDDO
74 IF(free) THEN
75 nrtm_free = nrtm_free + 1
76 free_irect_id(nrtm_free) = irm
77 ENDIF
78 ENDDO
79 END
subroutine i25free_bound(nrtm, mvoisin, irect, stifm, nrtm_free, free_irect_id)