#include "parser.h" #ifdef IWAVE_USE_MPI #include "mpigridpp.hh" #else #include "gridpp.hh" #endif #include "gridops.hh" using RVL::valparse; using RVL::RVLException; using RVL::Vector; using RVL::LinearOp; using RVL::AssignFilename; using TSOpt::GridDerivOp; #ifdef IWAVE_USE_MPI using TSOpt::MPIGridSpace; typedef TSOpt::MPIGridSpace gsp; #else using TSOpt::GridSpace; typedef TSOpt::GridSpace gsp; #endif int xargc; char **xargv; int main(int argc, char ** argv) { try { #ifdef IWAVE_USE_MPI int ts=0; MPI_Init_thread(&argc,&argv,MPI_THREAD_FUNNELED,&ts); storeGlobalComm(MPI_COMM_WORLD); #endif PARARRAY * pars = ps_new(); if (ps_createargs(pars,argc-1,&(argv[1]))) { RVLException e; e<<"ERROR: GridDot from ps_creatargs \n"; e<<" called with args:\n"; e<<" argc = "<(*pars,"in1"); string in2 = valparse(*pars,"in2"); gsp sp(in1,"notype",true #ifdef IWAVE_USE_MPI , retrieveGlobalComm() #endif ); Vector vec1(sp); Vector vec2(sp); AssignFilename af1(in1); AssignFilename af2(in2); vec1.eval(af1); vec2.eval(af2); cout<<" dot of "<