MPI and C++

A C++ version of the MPI library is available on our system. To compile in C++ instead of C, use the command  instead of.

For example, here is a C++ version of the program in Trapezoid Tutorial.

Compile and link this program with the following commands. This produces an executable  that can be run on the cluster using the tutorial's script , just like the executable from the tutorial's C program.