Added a get_mpiranks function to comm and updated gdbfe to use it.