mpich error

I am trying to get the Community Earth System Model (CESM) [http://www.cesm.ucar.edu/] working on our Linux cluster; I was apparently able to build okay w/ no errors. However, when I try and run the model either using mpirun or just running the model executable directly, I get the errors:

0 - MPI_GROUP_RANGE_INCL : Invalid rank 1
[0] Aborting program !
(seq_comm_setcomm) initialize ID ( 7 GLOBAL ) pelist = 0 0 1 ( npes = 1) ( nthreads = 1)
[0] Aborting program!
p0_27915: p4_error: : 8262

As I am a Linux/MPICH/programmer newbie, I am really at a loss regarding how to begin debugging this error. Any suggestions / pointers appreciated! Thanks in advance!

Hello,

I assume you are building this using the PGI compilers and
their MPICH1 installation. As in

export PATH=/opt/pgi/linux86-64/10.9/bin:/opt/pgi/linux86-64/2010/mpi/mpich/bin
and then build with

mpif90 -o mpihello mpihello.f

and then

mpirun -dbg=pgdbg

% more mpihello.f
program hello
include ‘mpif.h’
real a(8000000), b(8000000), c(8000000)
integer ierr, myproc,hostnm
character*64 hostname
do i=1,8000000
a(i)=b(i) + c(i)
end do
call mpi_init(ierr)
call mpi_comm_rank(MPI_COMM_WORLD, myproc, ierr)
! print *, “Hello world! I’m node”, myproc
ierr=setvbuf3f(6,2,0)
ierr=hostnm(hostname)
write(6,100) myproc,hostname
100 format(1x,“hello - I am process”,i3," host ",A10)
call mpi_finalize(ierr)
end


run in pgdbg with

% mpirun -dbg=pgdbg -np 8 mpihello_mpich

if you have the workstation product on linux, this will work if all the
processes run on the same host a s the compilers.

If you have the CDK, you can run on the cluster with pgdbg.

regards,
dave