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

Go to the source code of this file.

Functions/Subroutines

subroutine r1coor3 (x, vr, ixr, xdp, x1dp, x2dp, ngl, mgm, nc1, nc2, nel)

Function/Subroutine Documentation

◆ r1coor3()

subroutine r1coor3 ( x,
vr,
integer, dimension(nixr,*) ixr,
double precision, dimension(3,*) xdp,
double precision, dimension(3,*) x1dp,
double precision, dimension(3,*) x2dp,
integer, dimension(*) ngl,
integer, dimension(*) mgm,
integer, dimension(*) nc1,
integer, dimension(*) nc2,
integer, intent(in) nel )

Definition at line 28 of file r1coor3.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "scr05_c.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER, INTENT(IN) :: NEL
44 INTEGER IXR(NIXR,*),NGL(*),MGM(*),NC1(*),NC2(*)
46 . x(3,*), vr(3,*)
47 DOUBLE PRECISION XDP(3,*),X1DP(3,*),X2DP(3,*)
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER I,J
52C-----------------------------------------------
53 DO i=1,nel
54 ngl(i)=ixr(nixr,i)
55 nc1(i)=ixr(2,i)
56 nc2(i)=ixr(3,i)
57! NC3(I)=IXR(4,I) ! not used
58 mgm(i)=ixr(1,i)
59 ENDDO
60C----------------------------
61C COORDONNEES+ROTATIONS
62C----------------------------
63 IF (iresp == 1) THEN
64 DO i=1,nel
65 x1dp(1,i)=xdp(1,nc1(i))
66 x1dp(2,i)=xdp(2,nc1(i))
67 x1dp(3,i)=xdp(3,nc1(i))
68 x2dp(1,i)=xdp(1,nc2(i))
69 x2dp(2,i)=xdp(2,nc2(i))
70 x2dp(3,i)=xdp(3,nc2(i))
71 ENDDO
72 ELSE
73 DO i=1,nel
74 x1dp(1,i)=x(1,nc1(i))
75 x1dp(2,i)=x(2,nc1(i))
76 x1dp(3,i)=x(3,nc1(i))
77 x2dp(1,i)=x(1,nc2(i))
78 x2dp(2,i)=x(2,nc2(i))
79 x2dp(3,i)=x(3,nc2(i))
80 ENDDO
81 ENDIF
82C-----------------------------------------------
83 RETURN
#define my_real
Definition cppsort.cpp:32