2.1.21 Obtaining the MPI communicator in an Abaqus/CFD analysis

Product: Abaqus/CFD  

References

Overview

Utility routine SMACfdUserSubroutineGetMpiComm can be called from within a user subroutine to obtain the MPI communicator used in a parallel analysis job.

Interface

#include <mpi.h>
#include <SMACfdUserSubroutines.h>
MPI_Comm comm = SMACfdUserSubroutineGetMpiComm();

Variable returned from the utility routine

comm

MPI communicator.

Compile and link commands for utility usage

Utility subroutine SMACfdUserSubroutineGetMpiComm requires the user to modify the compile and link commands for user subroutines to point to the MPI include files and libraries. These MPI files are not included in the release, but they are typically installed on the computer where MPI development is undertaken. The modification to the compile and link commands is done using the compile_cpp and link_sl options. The include directory for the mpi.h file must be added to the compile_cpp variable, and the location of the MPI libraries must be added to the link_sl variable. The syntax for the changes to the commands is compiler and linker dependent.