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

Go to the source code of this file.

Functions/Subroutines

subroutine i4gmx3 (x, irect, i, gapmax)

Function/Subroutine Documentation

◆ i4gmx3()

subroutine i4gmx3 ( x,
integer, dimension(4,*) irect,
integer i,
gapmax )

Definition at line 34 of file i4gmx3.F.

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
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20