OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
prelecflow.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "mvsiz_p.inc"
#include "com01_c.inc"
#include "param_c.inc"
#include "vect01_c.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine prelecflow (elbuf_tab, ngrounc, igrounc, iparg, nbsdvois, nercvois, nesdvois, lercvois, lesdvois, phi1, phi2, por)

Function/Subroutine Documentation

◆ prelecflow()

subroutine prelecflow ( type(elbuf_struct_), dimension(ngroup), target elbuf_tab,
integer ngrounc,
integer, dimension(*) igrounc,
integer, dimension(nparg,*) iparg,
integer, dimension(*) nbsdvois,
integer, dimension(*) nercvois,
integer, dimension(*) nesdvois,
integer, dimension(*) lercvois,
integer, dimension(*) lesdvois,
phi1,
phi2,
por )

Definition at line 39 of file prelecflow.F.

42C-----------------------------------------------
43C M o d u l e s
44C-----------------------------------------------
45 USE initbuf_mod
46 USE elbufdef_mod
47C----6---------------------------------------------------------------7---------8
48C I m p l i c i t T y p e s
49C-----------------------------------------------
50#include "implicit_f.inc"
51#include "comlock.inc"
52C-----------------------------------------------
53C G l o b a l P a r a m e t e r s
54C-----------------------------------------------
55#include "mvsiz_p.inc"
56C-----------------------------------------------
57C C o m m o n B l o c k s
58C-----------------------------------------------
59#include "com01_c.inc"
60#include "param_c.inc"
61#include "vect01_c.inc"
62#include "task_c.inc"
63C-----------------------------------------------------------------
64C D u m m y A r g u m e n t s
65C-----------------------------------------------
66 INTEGER IPARG(NPARG,*),NBSDVOIS(*),IGROUNC(*),
67 . NERCVOIS(*),NESDVOIS(*),LERCVOIS(*),LESDVOIS(*),NGROUNC
68C REAL
70 . phi1(*),phi2(*),por(*)
71 TYPE(ELBUF_STRUCT_), TARGET, DIMENSION(NGROUP) :: ELBUF_TAB
72C-----------------------------------------------
73C L o c a l V a r i a b l e s
74C-----------------------------------------------
75 INTEGER INDXOF(MVSIZ)
76 INTEGER I,II,J,N, NG, NVC, MLW, JFT, JLT,ISOLNOD,ITHK,IPLA,
77 . LENCOM,KAD,NEL,NF1,IG
78 my_real,
79 . DIMENSION(:), POINTER :: uvar
80C======================================================================|
81C
82 lencom = 0
83 IF(nspmd > 1)lencom=nercvois(nspmd+1)+nesdvois(nspmd+1)
84C Boucle parallele dynamique SMP
85C
86!$OMP DO
87
88 DO ig = 1, ngrounc
89 ng = igrounc(ig)
90 IF(iparg(8,ng)==1)GOTO 150
91 ity =iparg(5,ng)
92 IF (iddw>0) CALL startimeg(ng)
93 mlw = iparg(1,ng)
94C MLW = 777 ---->cell open foam
95 IF (mlw /= 77 ) GOTO 150
96C
97 CALL initbuf(iparg ,ng ,
98 2 mlw ,nel ,nft ,kad ,ity ,
99 3 npt ,jale ,ismstr ,jeul ,jtur ,
100 4 jthe ,jlag ,jmult ,jhbe ,jivf ,
101 5 nvaux ,jpor ,jcvt ,jclose ,ipla ,
102 6 irep ,iint ,igtyp ,israt ,isrot ,
103 7 icsen ,isorth ,isorthg ,ifailure,jsms)
104C
105 isolnod = iparg(28,ng)
106
107C---------------------------------
108 lft = 1
109 llt = min(nvsiz,nel)
110 jft=lft
111 jlt=llt
112 nf1 = nft+1
113 iad = kad
114 jsph=0
115C----6---------------------------------------------------------------7---------8
116 IF(ity==1 .AND. jlag==1)THEN
117C-------------------------
118C STANDARD 8 NODE SOLID ELEMENT (JHBE = 1,2,101,102)
119C-------------------------
120 uvar => elbuf_tab(ng)%BUFLY(1)%MAT(1,1,1)%VAR
121 CALL vfluid(
122 1 uvar, nel, mlw, phi1,
123 2 phi2, por, nft)
124 ENDIF
125C-------------------------
126 IF (iddw>0) CALL stoptimeg(ng)
127
128 150 CONTINUE
129 ENDDO
130C
131 CALL my_barrier
132C
133C-----------------------------
134C ECHANGES SPMD SUR ELTS VOISINS
135C-----------------------------
136 IF (nspmd > 1) THEN
137cc LENCOMN=NBRCVOIS(MAXPROC+1)+NBSDVOIS(MAXPROC+1)
138C
139C Partie non parallele smt
140C
141!$OMP SINGLE
142 CALL spmd_e1vois(phi1 ,nercvois,nesdvois,lercvois,
143 1 lesdvois,lencom )
144C
145 CALL spmd_e1vois(phi2 ,nercvois,nesdvois,lercvois,
146 1 lesdvois,lencom )
147C
148 CALL spmd_e1vois(por ,nercvois,nesdvois,lercvois,
149 1 lesdvois,lencom )
150C Fin Partie non parallele smt
151!$OMP END SINGLE
152 ENDIF
#define my_real
Definition cppsort.cpp:32
subroutine startimeg(ng)
Definition timer.F:1487
subroutine stoptimeg(ng)
Definition timer.F:1535
#define min(a, b)
Definition macros.h:20
subroutine initbuf(iparg, ng, mtn, llt, nft, iad, ity, npt, jale, ismstr, jeul, jtur, jthe, jlag, jmult, jhbe, jivf, mid, jpor, jcvt, jclose, jpla, irep, iint, igtyp, israt, isrot, icsen, isorth, isorthg, ifailure, jsms)
Definition initbuf.F:261
subroutine spmd_e1vois(phi, nercvois, nesdvois, lercvois, lesdvois, lencom)
Definition spmd_cfd.F:375
subroutine my_barrier
Definition machine.F:31
subroutine vfluid(uvar, nel, mlw, phi1, phi2, phi3, nft)
Definition vfluid.F:32