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

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_fvb_switch (monvol)

Function/Subroutine Documentation

◆ spmd_fvb_switch()

subroutine spmd_fvb_switch ( integer, dimension(*) monvol)

Definition at line 33 of file spmd_fvb_switch.F.

34C Broadcast the information that a type 8 fvmbag has switched to type 7 UP monvol
35C To avoid deadlock, all processor must know which FVMBAGs have switched
36C to UP
37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE fvbag_mod
41 USE elbufdef_mod
42 USE spmd_mod
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C C o m m o n B l o c k s
49C-----------------------------------------------
50#include "com04_c.inc"
51#include "param_c.inc"
52C-----------------------------------------------
53C M e s s a g e P a s s i n g
54C-----------------------------------------------
55#include "spmd.inc"
56C-----------------------------------------------
57C D u m m y A r g u m e n t s
58C-----------------------------------------------
59 INTEGER MONVOL(*)
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER :: K1,N,ITYP(NVOLU),ITYPR(NVOLU),IERR
63C-----------------------------------------------
64#ifdef MPI
65
66 k1=1
67 DO n=1,nvolu
68 ityp(n)=monvol(k1-1+2)
69 k1=k1+nimv
70 ENDDO
71
72 CALL mpi_allreduce(ityp,itypr,nvolu,mpi_integer,mpi_min,spmd_comm_world,ierr)
73 k1=1
74
75 DO n=1,nvolu
76 IF(monvol(k1-1+2) == 8 .AND. itypr(n) == 7) THEN
77 monvol(k1-1+2) = 7
78 monvol(k1-1+15) = -1
79 ENDIF
80 k1=k1+nimv
81 ENDDO
82#endif
83 RETURN
subroutine mpi_allreduce(sendbuf, recvbuf, cnt, datatype, operation, comm, ierr)
Definition mpi.f:103