OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
c_isph.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/.
23C
24!||====================================================================
25!|| c_isph ../starter/source/restart/ddsplit/c_isph.F
26!||--- called by ------------------------------------------------------
27!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
28!||====================================================================
29 SUBROUTINE c_isph(KXSP,CEPSP,PROC,NUMSPH_L,
30 . SLONFSPH_L,SLPRTSPH,SLPRTSPH_L,IPARTSP,
31 . SSPHVELN_L,NSPHSOL_L,FIRST_SPHSOL_L)
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
55 my_real
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 calculation 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
101 END
subroutine c_isph(kxsp, cepsp, proc, numsph_l, slonfsph_l, slprtsph, slprtsph_l, ipartsp, ssphveln_l, nsphsol_l, first_sphsol_l)
Definition c_isph.F:32