Newsgroups: comp.parallel.mpi
From: eddemain@neumann.uwaterloo.ca (Erik Demaine)
Subject: Re: MPI newbi problem
Organization: University of Waterloo
Date: Sun, 6 Oct 1996 14:05:31 GMT
Message-ID: <Dyuxt7.HJF@undergrad.math.uwaterloo.ca>

Andreas Baumhof (baumhof@informatik.uni-muenchen.de) wrote:
: If I use erg1 instead of erg when my_rank==2 then the output is correct!
: What is the problem here??

I don't think you are experiencing an MPI/MPICH problem.  This sounds like
there may be a mistake in just the C part.  Check to ensure that erg is
allocated to two double's, not just one.  (Is it even allocated?  You
didn't supply that code.  How about the string declaration?)  Try simplifying
your program so that it doesn't do any pointer dereferencing.  If this works
(I assume it will from the behavior you describe), check your pointers and
make sure they point to valid places and the blocks are big enough.  (Are
the values set?)

Good luck,
Erik
-- 
Erik Demaine                 ()  e-mail: eddemain@neumann.uwaterloo.ca
Dept. of Computer Science    \/  URL: http://barrow.uwaterloo.ca/~eddemain/
University of Waterloo       /\  PGP key: finger me.  "Flying is the art of
Waterloo, ON Canada N2L 3G1  ()  falling and not hitting the ground" -Adams

