Send objects with MPJ express
问题 I'm new to parallel programming and I want to do it in java. I am wondering if it is possible to send and receive more complex ojects via MPI. I'm using MPJ express. However whenever I want to send a object I get a ClassCastException. MPI.Init(args); myrank = MPI.COMM_WORLD.Rank(); numprocs = MPI.COMM_WORLD.Size(); Vector<CustomClass> chr = new Vector<CustomClass>(); if (myrank == 0 ) { //am I the master? for (int i = 1; i < numprocs; i++) { MPI.COMM_WORLD.Send(chr, 0, chr.size(), MPI.OBJECT,