Example MPI codes:
(1)  hello.c
(2)  hello.f90
(1)  ssum.cpp      
(2)  ssum.f90
(3)  psum1.cpp  
(4)  psum1.f90  
(5)  psum2.cpp  
(6)  psum2.f90  
(7)  shrink_array.cpp  
(8)  shrink_array.f90
(9)  bcast.cpp
(10) bcast.f90
(11) comm_groups.cpp  
(12) comm_groups.f90
(13) pypar_test.py
(14) mpi4py_test.py

Compile with:
C:   mpicc -o file.x file.c
C++: mpicxx -o file.x file.cpp
F90: mpif90 -o file.x file.f90
NOTE: file.x = executable, file.c/.cpp/.f90 = source

Running interactively:
(1) Request an interactive shell
bsub -Is -n 4 -q interact bash

(2) Load an appropriate MPI module, e.g.,
module load hpc/intel-compilers-13.0.079

(3) Run the application
mpirun -np 4 ./file.x
