OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_isph.F File Reference
#include "implicit_f.inc"
#include "com04_c.inc"
#include "sphcom.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine c_isph (kxsp, cepsp, proc, numsph_l, slonfsph_l, slprtsph, slprtsph_l, ipartsp, ssphveln_l, nsphsol_l, first_sphsol_l)

Function/Subroutine Documentation

◆ c_isph()

subroutine c_isph ( integer, dimension(nisp,*) kxsp,
integer, dimension(*) cepsp,
integer proc,
integer numsph_l,
integer slonfsph_l,
integer slprtsph,
integer slprtsph_l,
integer, dimension(*) ipartsp,
integer ssphveln_l,
integer nsphsol_l,
integer first_sphsol_l )

Definition at line 29 of file c_isph.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "com04_c.inc"
40#include "sphcom.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER PROC, NUMSPH_L, NSPHSOL_L, FIRST_SPHSOL_L,
45 . KXSP(NISP,*), CEPSP(*)
46
47c inlet outlet spmd
48 INTEGER SLONFSPH_L, IPRT, N, IPARTSP(*),SLPRTSPH_L,SLPRTSPH,
49 .SSPHVELN_L
50
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER I, NB_L, IUN
56 . aux
57 DATA iun/1/
58C
59 nb_l = 0
60C
61 DO i = 1, numsph
62 IF(cepsp(i)==proc) THEN
63 nb_l = nb_l + 1
64 ENDIF
65 ENDDO
66C
67 numsph_l = nb_l
68C
69c inlet spmd calcul SLONFSPH_L
70 slonfsph_l = 0
71
72 DO iprt=1,npart
73 DO n=1,numsph
74 IF(cepsp(n)==proc.and.ipartsp(n)==iprt.
75 . and.kxsp(2,n)/=0)THEN
76 slonfsph_l=slonfsph_l+1
77 ENDIF
78 ENDDO
79 ENDDO
80
81 slprtsph_l=slprtsph
82 ssphveln_l=nsphio*numsph_l*2
83C
84 nb_l = 0
85 DO i = 1, first_sphsol-1
86 IF(cepsp(i)==proc) THEN
87 nb_l = nb_l + 1
88 ENDIF
89 ENDDO
90 first_sphsol_l = nb_l+1
91C
92 nb_l = 0
93 DO i = 1, nsphsol
94 IF(cepsp(first_sphsol+i-1)==proc) THEN
95 nb_l = nb_l + 1
96 ENDIF
97 ENDDO
98 nsphsol_l = nb_l
99
100 RETURN
#define my_real
Definition cppsort.cpp:32