OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmdset.F File Reference
#include "implicit_f.inc"
#include "com01_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine spmdset (n, npby, nnpby, lpby, nsl, k)

Function/Subroutine Documentation

◆ spmdset()

subroutine spmdset ( integer n,
integer, dimension(nnpby,*) npby,
integer nnpby,
integer, dimension(*) lpby,
integer nsl,
integer k )

Definition at line 33 of file spmdset.F.

34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "com01_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER N,NPBY(NNPBY,*),LPBY(*), NNPBY, NSL, K
46C-----------------------------------------------
47C F u n c t i o n
48C-----------------------------------------------
49 INTEGER NLOCAL
50 EXTERNAL nlocal
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER P,J,FMAIN(NSPMD),S_FMAIN
55C-----------------------------------------------------------------
56 DO p = 1, nspmd
57 fmain(p) = 0
58 ENDDO
59 s_fmain = 0
60 DO p = 1, nspmd
61 DO j = 1, nsl
62 IF (nlocal(lpby(j+k),p)/=0)THEN
63 fmain(p) = 1
64 s_fmain = s_fmain + 1
65 GO TO 85
66 ENDIF
67 ENDDO
6885 CONTINUE
69 END DO
70C rigid body // noeud main sur les procs ayant au moins 1 secnd
71 DO p = 1, nspmd
72 IF (fmain(p) == 1) THEN
73 CALL ifrontplus(npby(1,n),p)
74 ENDIF
75 ENDDO
76C rigid body // les secnds nodes ne sont pas connectes, on affecte arbitrairement le main sur le proc0
77 IF (s_fmain==0) CALL ifrontplus(npby(1,n),1)
78 IF(npby(8,n)/=0)THEN
79 CALL ifrontplus(npby(1,n),1)
80 ENDIF
81c-----------
82 RETURN
integer function nlocal(n, p)
Definition ddtools.F:349
subroutine ifrontplus(n, p)
Definition frontplus.F:100