Compile OpenMPI with PBSpro 14.1.10

To Compile an openMPI program:
mpiCC -g wave_mpi.cpp -o wave_mpi

Compiling a previously working MPI program will FAIL with the following:
… error: ‘MPI’ has not been declared

The reason is that a change from OpenMPI 1.x to 2.x correspond roughly to change in impementation of MPI v2 to MPI v3

Apparently MPI-3.x deleted C++ bindings so OpenMPI is not build by default with C++

Solution is:
make clean
make distclean
./configure --with-tm=/opt/pbs --enable-mpi-cxx
make
make install

Then to compile program:
mpiCC -g wave_mpi.cpp -o wave_mpi

THis can be submitted using a script:

(replace HASH_ with symbol #)

Submitting to pbs:
qsub wave_pbs.sh