Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Jayanta Roy (jay.roys_at_[hidden])
Date: 2007-05-15 10:07:17


Dear Rainer and Adrian,

Thank you lot for the help. It works. I was trying this for long time but
didn't notice the mistakes. I can't understand how can I overlooked that!

Regards,
Jayanta

On 5/15/07, Adrian Knoth <adi_at_[hidden]> wrote:
>
> On Mon, May 14, 2007 at 11:59:18PM +0530, Jayanta Roy wrote:
>
> > if(myrank = 0 || myrank == 1)
> > if(myrank = 2 || myrank == 3)
>
> Just to make clear we're not talking about a typo: Do you mean
> assignment or comparison?
>
>
> For comparisons, better put the constant value to the left, so
>
> if (2 = myrank)
>
> gives you a compiler error, because your intention was
>
> if (2 == myrank)
>
>
> Just guessing...
>
> --
> Cluster and Metacomputing Working Group
> Friedrich-Schiller-Universität Jena, Germany
>
> private: http://adi.thur.de
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>