TclPump.h

Name

TclPump.h -- Utility definitions in TclPump.h

Synopsis


 
#include <config.h>

#ifndef MPI_TCL_TAG
#define MPI_TCL_TAG  1    // Tcl commands have this tag
#endif

...

bool isMpiApp();
int  myRank();

...
                   

DESCRIPTON

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:

MPI_TCL_TAG

Defines the tag used to send messages to the Tcl command pump.

bool isMpiApp(void);

This function returns true if the process is runn ing in the MPI environment. Otherwise it will return false

int myRank(void);

If isMpiApp would return true, this function will return the proccess's wold communicator rank.