OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i17xsave.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "com04_c.inc"
#include "com08_c.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine i17xsave (x, v, a, ixs, ixs16, nmes, nme_t, esh_t, nelem, neles, eminxm, itask, xsav, xmin, ymin, zmin, xmax, ymax, zmax)

Function/Subroutine Documentation

◆ i17xsave()

subroutine i17xsave ( x,
v,
a,
integer, dimension(nixs,*) ixs,
integer, dimension(8,*) ixs16,
integer nmes,
integer nme_t,
integer esh_t,
integer, dimension(*) nelem,
integer, dimension(*) neles,
eminxm,
integer itask,
xsav,
xmin,
ymin,
zmin,
xmax,
ymax,
zmax )

Definition at line 31 of file i17xsave.F.

36 use element_mod , only : nixs
37C saving of xsav and calculation of domain bounds
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42#include "comlock.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46#include "com04_c.inc"
47#include "com08_c.inc"
48#include "task_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER NMES,NME_T,ESH_T,ITASK,
53 . NELEM(*),NELES(*),IXS(NIXS,*),IXS16(8,*)
55 . xmax, ymax, zmax, xmin, ymin, zmin,
56 . x(3,*), v(3,*), a(3,*), eminxm(6,*), xsav(3,*)
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER NMES_F, NMES_L, I, J, K
61C-----------------------------------------------
62C S o u r c e L i n e s
63C-----------------------------------------------
64C
65 nmes_f = 1 + itask*nmes / nthread
66 nmes_l = (itask+1)*nmes / nthread
67C
68 xmin=ep30
69 xmax=-ep30
70 ymin=ep30
71 ymax=-ep30
72 zmin=ep30
73 zmax=-ep30
74C
75 DO k=1,8
76 DO i=1+esh_t,nme_t+esh_t
77 j=ixs(k+1,nelem(i))
78 xsav(1,j) = x(1,j)+dt2*(v(1,j)+dt12*a(1,j))
79 xsav(2,j) = x(2,j)+dt2*(v(2,j)+dt12*a(2,j))
80 xsav(3,j) = x(3,j)+dt2*(v(3,j)+dt12*a(3,j))
81 j=ixs16(k,nelem(i)-numels8-numels10-numels20)
82 xsav(1,j) = x(1,j)+dt2*(v(1,j)+dt12*a(1,j))
83 xsav(2,j) = x(2,j)+dt2*(v(2,j)+dt12*a(2,j))
84 xsav(3,j) = x(3,j)+dt2*(v(3,j)+dt12*a(3,j))
85C
86 xmin = min( xmin , eminxm(1,i) )
87 ymin = min( ymin , eminxm(2,i) )
88 zmin = min( zmin , eminxm(3,i) )
89 xmax = max( xmax , eminxm(4,i) )
90 ymax = max( ymax , eminxm(5,i) )
91 zmax = max( zmax , eminxm(6,i) )
92 ENDDO
93 DO i=nmes_f,nmes_l
94 j=ixs(k+1,neles(i))
95 xsav(1,j) = x(1,j)+dt2*(v(1,j)+dt12*a(1,j))
96 xsav(2,j) = x(2,j)+dt2*(v(2,j)+dt12*a(2,j))
97 xsav(3,j) = x(3,j)+dt2*(v(3,j)+dt12*a(3,j))
98 j=ixs16(k,neles(i)-numels8-numels10-numels20)
99 xsav(1,j) = x(1,j)+dt2*(v(1,j)+dt12*a(1,j))
100 xsav(2,j) = x(2,j)+dt2*(v(2,j)+dt12*a(2,j))
101 xsav(3,j) = x(3,j)+dt2*(v(3,j)+dt12*a(3,j))
102 ENDDO
103 ENDDO
104C
105 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine ymax(idn, fac, npc, pld, stiffmin, stiffmax, stiffini, stiffavg)
Definition law100_upd.F:274
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21