#include "rkstream.hh" #include "mpisegypp.hh" using namespace RVL; using namespace TSOpt; char ** xargv; int main(int argc, char ** argv) { int rk=0; #ifdef IWAVE_USE_MPI MPI_Init(&argc,&argv); storeComm(MPI_COMM_WORLD); MPI_Comm cml = retrieveComm(); MPI_Comm_rank(cml, &rk); #endif try { ofstream str; RVL::makeRankStream(str,rk,"testsrc/mpitest1"); if (rk==0) { system("sunull nt=101 ntr=11 dt=0.002|sushw key=sx a=1000|sushw key=gx a=2000 b=-100 > testsrc/mpitest1/hdr.su"); system("suop op=exp testsrc/mpitest1/mpitest1.su"); cout<<"MPISEGYPP Unit Test 1"< v(sp); AssignFilename af(dname); v.eval(af); RVLMax mx; MPISerialFunctionObjectRedn mpimx(mx); v.eval(mpimx); RVLMin mn; MPISerialFunctionObjectRedn mpimn(mn); v.eval(mpimn); if (rk==0) cout<<"mpitest1 result: max="<