fdds_initmpi - initialize the DDS system for MPI parallelization


SYNOPSIS

#include <mpif.h>

integer fdds_initmpi(node, nodes)

integer node
integer nodes

DESCRIPTION

fdds_initmpi is used to initialize the DDS system for MPI parallelization. It determines the number of MPI nodes used and the node number (0 through nodes-1) for the current process. If MPI is available on the current system MPI is initialized with the MPI_Init call. The master node then passes all the command line parameters to the slave nodes to ensure all nodes "see" the exact same parameters (since MPI does not guarantee that). If MPI is not available, it simply checks that "np=1". The return value is alway 0.

NOTE: you will have to declare this function yourself because it is cannot be defined in fdds.h. So add "integer fdds_initmpi" to any routine that uses it. Also note that you need to #include <mpif.h> in source files that use mpi routines.

SEE ALSO

fdds_initopenmp  Initialize DDS for OpenMP
    

AUTHOR

Jerry Ehlers, BP America (Feb 2006)