Added moab resource lines

Added resource lines and fixed mpi_ncpus routines