OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
i22xsave.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/.
23!||====================================================================
24!|| i22xsave ../engine/source/interfaces/intsort/i22xsave.F
25!||--- called by ------------------------------------------------------
26!|| i22main_tri ../engine/source/interfaces/intsort/i22main_tri.F
27!||====================================================================
28 SUBROUTINE i22xsave(
29 1 X ,NSV ,MSR ,NSN ,NMN ,
30 2 ITASK ,XSAV ,XMIN ,YMIN ,ZMIN ,
31 3 XMAX ,YMAX ,ZMAX ,C_MAX ,CURV_MAX,
32 4 ICURV ,IRECT,NRTM_T)
33C sauvegarde des XSAV et calcul borne domaine
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38#include "comlock.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "com04_c.inc"
43#include "task_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER NSN,NMN,ITASK, ICURV, NRTM_T,
48 . NSV(*),MSR(*), IRECT(4,*)
49 my_real
50 . XMAX, YMAX, ZMAX, XMIN, YMIN, ZMIN, C_MAX,
51 . x(3,*), xsav(3,*), curv_max(*)
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER NSNF,NMNF,NSNL,NMNL,I, J, II
56 my_real
57 . XXX, YYY, ZZZ
58C-----------------------------------------------
59C S o u r c e L i n e s
60C-----------------------------------------------
61C
62C Description : Calcul des dimensions du domaine lagrangien du domaine local.
63C Chaque Thread calcul ses dimensions, on en d duit la dimension du domaine dans i22main_tri.
64
65
66 nsnf=1+itask*nsn/nthread
67 nsnl=(itask+1)*nsn/nthread
68 nmnf=1+itask*nmn/nthread
69 nmnl=(itask+1)*nmn/nthread
70C
71 xmin=ep30
72 xmax=-ep30
73 ymin=ep30
74 ymax=-ep30
75 zmin=ep30
76 zmax=-ep30
77C
78 IF(nsn+nmn < numnod)THEN
79 DO i=nsnf,nsnl
80 j=nsv(i)
81 IF(j>0)THEN
82 xsav(1,i)=x(1,j)
83 xsav(2,i)=x(2,j)
84 xsav(3,i)=x(3,j)
85 END IF
86 END DO
87 DO i=nmnf,nmnl
88 ii = i+nsn
89 j=msr(i)
90C msr < 0 <=> shooting nodes
91 IF(j>0) THEN
92 xmin= min(xmin,x(1,j))
93 ymin= min(ymin,x(2,j))
94 zmin= min(zmin,x(3,j))
95 xmax= max(xmax,x(1,j))
96 ymax= max(ymax,x(2,j))
97 zmax= max(zmax,x(3,j))
98 xsav(1,ii)=x(1,j)
99 xsav(2,ii)=x(2,j)
100 xsav(3,ii)=x(3,j)
101 ENDIF
102 END DO
103 ELSE
104C
105 DO i=nsnf,nsnl
106 j=nsv(i)
107 IF(j>0)THEN
108 xsav(1,j)=x(1,j)
109 xsav(2,j)=x(2,j)
110 xsav(3,j)=x(3,j)
111 END IF
112 END DO
113 DO i=nmnf,nmnl
114 j=msr(i)
115C msr < 0 <=> shooting nodes
116 IF(j>0) THEN
117 xmin= min(xmin,x(1,j))
118 ymin= min(ymin,x(2,j))
119 zmin= min(zmin,x(3,j))
120 xmax= max(xmax,x(1,j))
121 ymax= max(ymax,x(2,j))
122 zmax= max(zmax,x(3,j))
123 xsav(1,j)=x(1,j)
124 xsav(2,j)=x(2,j)
125 xsav(3,j)=x(3,j)
126 END IF
127 END DO
128 ENDIF
129C
130 c_max = zero
131
132 DO i=1,nrtm_t
133 curv_max(i)=zero
134 ENDDO
135
136 RETURN
137 END
subroutine i22xsave(x, nsv, msr, nsn, nmn, itask, xsav, xmin, ymin, zmin, xmax, ymax, zmax, c_max, curv_max, icurv, irect, nrtm_t)
Definition i22xsave.F:33
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