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 29 of file i17xsave.F.

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