OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i4gmx3.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/.
23C
24!||====================================================================
25!|| i4gmx3 ../starter/source/interfaces/inter3d1/i4gmx3.F
26!||--- called by ------------------------------------------------------
27!|| i20sti3 ../starter/source/interfaces/inter3d1/i20sti3.F
28!|| i21gap3 ../starter/source/interfaces/inter3d1/i21gap3.F
29!|| i23gap3 ../starter/source/interfaces/inter3d1/i23gap3.F
30!|| i24gapm ../starter/source/interfaces/inter3d1/i24sti3.F
31!|| i25gapm ../starter/source/interfaces/inter3d1/i25sti3.F
32!|| i7sti3 ../starter/source/interfaces/inter3d1/i7sti3.F
33!||====================================================================
34 SUBROUTINE i4gmx3(X,IRECT,I,GAPMAX)
35C
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER I
45 . gapmax
46 INTEGER IRECT(4,*)
48 . x(3,*)
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER JPERM(4), JJ, N1, N2
54 . xl
55C
56 DATA jperm/2,3,4,1/
57C-----------------------------------------------------------------
58C LONGUEUR MINI DES COTES DE SEGMENT (CALCUL DU GAP MAX)
59C-----------------------------------------------------------------
60 DO jj=1,4
61 n1=irect(jj,i)
62 n2=irect(jperm(jj),i)
63 xl=(x(1,n1)-x(1,n2))**2
64 . +(x(2,n1)-x(2,n2))**2
65 . +(x(3,n1)-x(3,n2))**2
66 IF(xl>zero.AND.n1/=n2)gapmax= min(gapmax,xl)
67 END DO
68C
69 RETURN
70 END
#define my_real
Definition cppsort.cpp:32
subroutine i4gmx3(x, irect, i, gapmax)
Definition i4gmx3.F:35
#define min(a, b)
Definition macros.h:20