$(if $(DEAL_II_USE_MPI:no=), $(if $(USE_CONTRIB_P4EST:no=),mpi,),) \
$(if $(USE_CONTRIB_P4EST:no=), distributed_grids,) \
$(if $(USE_CONTRIB_PETSC:no=), petsc,) \
+ $(if $(USE_CONTRIB_SLEPC:no=), slepc,) \
$(if $(USE_CONTRIB_TRILINOS:no=), trilinos,) \
$(if $(USE_CONTRIB_UMFPACK:no=), umfpack,) \
$(if $(USE_CONTRIB_METIS:no=), metis,) \
--- /dev/null
+//-------------------------------------------------------
+// $Id: 01.cc 24924 2013-01-28 young $
+// Version: $Name$
+//
+// Copyright (C) 2013 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//-------------------------------------------------------
+
+
+// just check initialising SLEPc can be done and that it initialises
+// PETSc in the way we expect, ie. *a* PETSc object exist.
+
+#include "../tests.h"
+#include <deal.II/lac/slepc_solver.h>
+#include <deal.II/base/logstream.h>
+#include <deal.II/base/numbers.h>
+#include <fstream>
+#include <iostream>
+
+std::ofstream logfile ("00/output");
+
+int main (int argc,char **argv)
+{
+ deallog.attach (logfile);
+ deallog.depth_console (1);
+
+ try
+ {
+
+ logfile << "Initializing SLEPc (PETSc): "
+ << std::flush;
+
+ SlepcInitialize (&argc, &argv, 0, 0);
+ {
+ logfile << "ok"
+ << std::endl;
+
+ // Do something simple with PETSc
+ logfile << "Using PetscScalar:"
+ << std::endl;
+
+ const PetscScalar pi = numbers::PI;
+ const PetscScalar two = 2.;
+
+ logfile << " pi: " << pi
+ << std::endl
+ << " two: " << two
+ << std::endl
+ << " two times pi: " << two*pi
+ << std::endl;
+
+
+ logfile << "Finalizing SLEPc (PETSc): "
+ << std::flush;
+
+ }
+ SlepcFinalize ();
+
+ logfile << "ok"
+ << std::endl << std::endl;
+ }
+
+ catch (std::exception &exc)
+ {
+ std::cerr << std::endl << std::endl
+ << "----------------------------------------------------"
+ << std::endl;
+ std::cerr << "Exception on processing: " << std::endl
+ << exc.what() << std::endl
+ << "Aborting!" << std::endl
+ << "----------------------------------------------------"
+ << std::endl;
+
+ return 1;
+ }
+
+ catch (...)
+ {
+ std::cerr << std::endl << std::endl
+ << "----------------------------------------------------"
+ << std::endl;
+ std::cerr << "Unknown exception!" << std::endl
+ << "Aborting!" << std::endl
+ << "----------------------------------------------------"
+ << std::endl;
+ return 1;
+ };
+}
--- /dev/null
+############################################################
+# Makefile,v 1.15 2002/06/13 12:51:13 hartmann Exp
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+############################################################
+
+include ../Makefile.paths
+include $D/common/Make.global_options
+include ../Makefile.rules
+include Makefile.depend
+include Makefile.tests