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