#include "Didasko_ConfigDefs.h"
#ifdef HAVE_MPI
#include "mpi.h"
#endif
#if defined(HAVE_DIDASKO_TEUCHOS)
#include "Teuchos_CommandLineProcessor.hpp"
int main(int argc, char* argv[])
{
#ifdef HAVE_MPI
MPI_Init(&argc,&argv);
#endif
Teuchos::CommandLineProcessor My_CLP;
int NumIters = 1550;
My_CLP.setOption("iterations", &NumIters, "Number of iterations");
double Tolerance = 1e-10;
My_CLP.setOption("tolerance", &Tolerance, "Tolerance");
string Solver = "GMRES";
My_CLP.setOption("solver", &Solver, "Linear solver");
bool Precondition;
My_CLP.setOption("precondition","no-precondition",
&Precondition,"Preconditioning flag");
My_CLP.recogniseAllOptions(false);
My_CLP.throwExceptions(false);
My_CLP.parse( argc, argv );
#ifdef HAVE_MPI
MPI_Finalize();
#endif
return 0;
}
#else
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
#ifdef HAVE_MPI
MPI_Init(&argc,&argv);
#endif
puts("Please configure Didasko with:");
puts("--enable-teuchos");
#ifdef HAVE_MPI
MPI_Finalize();
#endif
return 0;
}
#endif