OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_rsph.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!|| w_rsph ../starter/source/restart/ddsplit/w_rsph.F
26!||--- called by ------------------------------------------------------
27!|| ddsplit ../starter/source/restart/ddsplit/ddsplit.F
28!||--- calls -----------------------------------------------------
29!|| ancmsg ../starter/source/output/message/message.F
30!||--- uses -----------------------------------------------------
31!|| message_mod ../starter/share/message_module/message_mod.F
32!||====================================================================
33 SUBROUTINE w_rsph(SPBUF ,NUMSPH_L,CEPSP,PROC,
34 2 VSPHIO,LEN_AM,SSPHVELN_L)
35 USE message_mod
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "sphcom.inc"
44#include "tabsiz_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER NUMSPH_L, PROC, LEN_AM,
49 . cepsp(*),ssphveln_l, stat
51 . spbuf(nspbuf,*),vsphio(*)
52
53 my_real, DIMENSION(:), ALLOCATABLE :: sphveln_l
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER I, J, IE_L
58 my_real, DIMENSION(:,:), ALLOCATABLE :: spbuf_l
59C-----------------------------------------------
60C
61! ------------------------------------
62! allocate 2d array
63 ALLOCATE( spbuf_l(nspbuf,numsph_l) )
64! ------------------------------------
65 ie_l = 0
66C
67 DO i = 1, numsph
68 IF(cepsp(i)==proc) THEN
69 ie_l = ie_l + 1
70 DO j = 1, nspbuf
71 spbuf_l(j,ie_l) = spbuf(j,i)
72 END DO
73 END IF
74 END DO
75C
76 CALL write_db(spbuf_l,numsph_l*nspbuf)
77 len_am = len_am + numsph_l*nspbuf
78C
79 IF(nsphio > 0) THEN
80 ALLOCATE(sphveln_l(ssphveln_l) ,stat=stat)
81 IF (stat /= 0) CALL ancmsg(msgid=268,anmode=aninfo,
82 . msgtype=msgerror)
83 sphveln_l(1:ssphveln_l)=zero
84C ecriture faite sur p0 en monodomaine pour inlet/outlet
85 CALL write_db(vsphio,svsphio)
86 CALL write_db(sphveln_l,ssphveln_l)
87 len_am = len_am + svsphio + ssphveln_l
88 DEALLOCATE(sphveln_l)
89 END IF
90C
91! ------------------------------------
92! deallocate 2d array
93 DEALLOCATE( spbuf_l )
94! ------------------------------------
95 RETURN
96 END
#define my_real
Definition cppsort.cpp:32
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889
subroutine w_rsph(spbuf, numsph_l, cepsp, proc, vsphio, len_am, ssphveln_l)
Definition w_rsph.F:35
subroutine write_db(a, n)
Definition write_db.F:140