#include <config.h> #ifndef MPI_TCL_TAG #define MPI_TCL_TAG 1 // Tcl commands have this tag #endif ... bool isMpiApp(); int myRank(); ...
While the primary purpose of this header is to define the interfaces for the Tcl command pump, Several useful MPI query functions are defined here:
Defines the tag used to send messages to the Tcl command pump.
This function returns true if the process is runn ing in the MPI environment. Otherwise it will return false
If isMpiApp
would return true,
this function will return the proccess's wold communicator rank.