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

Go to the source code of this file.

Functions/Subroutines

subroutine w_rsph (spbuf, numsph_l, cepsp, proc, vsphio, len_am, ssphveln_l)

Function/Subroutine Documentation

◆ w_rsph()

subroutine w_rsph ( spbuf,
integer numsph_l,
integer, dimension(*) cepsp,
integer proc,
vsphio,
integer len_am,
integer ssphveln_l )

Definition at line 33 of file w_rsph.F.

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
#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 write_db(a, n)
Definition write_db.F:140