Hello there<br>
<br>
I am trying to paralleize GA code using pyMPI. part of the code and and the error message is as below.<br>
i write the new positions in a file by root (which is mpi.rank = 0) then other processes are suppose to wait <br>

until the written in the file finishes to start evaluating the objective. the problem arises in the barrier method...<br>
any ideas on how to do this would be very much appreciated..<br>
<br>

for i in xrange(max_iter):<br>
            if (mpi.rank == 0):<br>
                update_positions()<br>
                save_GA_pops_iter() <br>
                       <br>
            mpi.barrier()  <----------------------------
<div id=":77" class="ii gt">error is here<br>
            evaluate_objective()<br>            mpi.barrier()<br><br>error message:<br>    mpi.barrier()      <br>mpi.MPIError: MPI_Error_string: invalid communicator: Input/output error (pyMPI_comm_io.c:367)<br>
<br>
<br>
Thanks very much<br>

Dina<br>
<br><br></div>