OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
agrad0.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!|| agrad0 ../engine/source/ale/agrad0.F
25!||--- called by ------------------------------------------------------
26!|| alethe ../engine/source/ale/alethe.F
27!||--- calls -----------------------------------------------------
28!|| agrad2 ../engine/source/ale/ale2d/agrad2.F
29!|| agrad3 ../engine/source/ale/ale3d/agrad3.F
30!|| egrad2 ../engine/source/ale/euler2d/egrad2.F
31!|| egrad3 ../engine/source/ale/euler3d/egrad3.F
32!|| my_barrier ../engine/source/system/machine.F
33!|| tgrad2 ../engine/source/ale/ale2d/tgrad2.F
34!|| tgrad3 ../engine/source/ale/ale3d/tgrad3.F
35!||--- uses -----------------------------------------------------
36!|| ale_connectivity_mod ../common_source/modules/ale/ale_connectivity_mod.F
37!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
38!||====================================================================
39 SUBROUTINE agrad0(IPARG ,IXS ,IXQ ,X ,ALE_CONNECT ,
40 . GRAD ,VEUL ,ELBUF_STR ,ITASK )
41C-----------------------------------------------
42C M o d u l e s
43C-----------------------------------------------
44 USE elbufdef_mod
46C-----------------------------------------------
47C I m p l i c i t T y p e s
48C-----------------------------------------------
49#include "implicit_f.inc"
50C-----------------------------------------------
51C C o m m o n B l o c k s
52C-----------------------------------------------
53#include "com01_c.inc"
54#include "com04_c.inc"
55#include "vect01_c.inc"
56#include "param_c.inc"
57#include "task_c.inc"
58C-----------------------------------------------
59C D u m m y A r g u m e n t s
60C-----------------------------------------------
61 INTEGER IXS(NIXS,NUMELS), IXQ(NIXQ,NUMELQ)
62 my_real x(3,numnod),grad(*), veul(*)
63 INTEGER IPARG(NPARG,NGROUP),ITASK
64 TYPE (ELBUF_STRUCT_), DIMENSION (NGROUP), TARGET :: ELBUF_STR
65 TYPE(t_ale_connectivity), INTENT(IN) :: ALE_CONNECT
66C-----------------------------------------------
67C L o c a l V a r i a b l e s
68C-----------------------------------------------
69 INTEGER NG,NEL
70 TYPE(g_bufel_) ,POINTER :: GBUF
71C-----------------------------------------------
72C S o u r c e L i n e s
73C-----------------------------------------------
74 DO ng=itask+1,ngroup,nthread
75 gbuf => elbuf_str(ng)%GBUF
76 jtur=iparg(12,ng)
77 jthe=iparg(13,ng)
78 ity =iparg(5,ng)
79 IF((jtur == 1 .OR. jthe == 1) .AND. ity /= 51 .AND. iparg(8,ng) /= 1) THEN
80 mtn=iparg(1,ng)
81 jale=iparg(7,ng)
82 jeul=iparg(11,ng)
83 jlag=iparg(14,ng)
84 llt=iparg(2,ng)
85 nft=iparg(3,ng)
86 lft=1
87 nel = llt
88 IF(n2d == 0)THEN
89 IF(jale+jlag /= 0)THEN
90 CALL agrad3(ixs,x,ale_connect,grad(6*nft+1))
91 ELSEIF(jeul == 1)THEN
92 CALL egrad3(ixs,x,ale_connect,grad(6*nft+1),veul)
93 ELSE
94 CALL tgrad3(gbuf%SIG,grad(6*nft+1),nel)
95 ENDIF
96 ELSE
97 IF(jlag+jale /= 0)THEN
98 CALL agrad2(ixq,x,ale_connect,grad(4*nft+1))
99 ELSEIF(jeul == 1)THEN
100 CALL egrad2(ixq,x,ale_connect,grad(4*nft+1))
101 ELSE
102 CALL tgrad2(gbuf%SIG,grad(4*nft+1),nel)
103 ENDIF
104 ENDIF
105 ENDIF
106 enddo!next NG
107C
108 CALL my_barrier
109C
110 RETURN
111 END
subroutine agrad0(iparg, ixs, ixq, x, ale_connect, grad, veul, elbuf_str, itask)
Definition agrad0.F:41
#define my_real
Definition cppsort.cpp:32
subroutine egrad2(ixq, x, ale_connect, grad)
Definition egrad2.F:31
subroutine egrad3(ixs, x, ale_connect, grad, veul)
Definition egrad3.F:31
subroutine agrad2(ixq, x, ale_connectivity, grad, nel)
Definition agrad2.F:30
subroutine agrad3(ixs, x, ale_connectivity, grad, nel)
Definition agrad3.F:30
subroutine my_barrier
Definition machine.F:31
subroutine tgrad2(grd, grad, nel)
Definition tgrad2.F:29
subroutine tgrad3(grd, grad, nel)
Definition tgrad3.F:29