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

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_exsum_fb6 (dim6, dim_exch, fb6)

Function/Subroutine Documentation

◆ spmd_exsum_fb6()

subroutine spmd_exsum_fb6 ( integer dim6,
integer dim_exch,
double precision, dimension(dim6,6,dim_exch) fb6 )

Definition at line 32 of file spmd_exsum_fb6.F.

33C sommation + distribution de fb6 via MPI_AllReduce
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37 USE spmd_comm_world_mod, ONLY : spmd_comm_world
38#include "implicit_f.inc"
39C-----------------------------------------------------------------
40C M e s s a g e P a s s i n g
41C-----------------------------------------------
42#include "spmd.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER DIM6,DIM_EXCH
47 double precision
48 . fb6(dim6,6,dim_exch)
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52#ifdef MPI
53 INTEGER I,J,DIM
54 INTEGER IERROR
55 double precision
56 . buf6(dim6,6,dim_exch)
57C-----------------------------------------------
58C S o u r c e L i n e s
59C-----------------------------------------------
60 buf6(1:dim6,1:6,1:dim_exch)=fb6(1:dim6,1:6,1:dim_exch)
61 dim=dim6*6*dim_exch
62C
63 CALL mpi_allreduce(buf6,fb6,dim,mpi_double_precision,
64 . mpi_sum,spmd_comm_world,ierror)
65C
66#endif
67 RETURN
subroutine mpi_allreduce(sendbuf, recvbuf, cnt, datatype, operation, comm, ierr)
Definition mpi.f:103