dune-fem  2.4.1-rc
pardg.hh
Go to the documentation of this file.
1 #ifndef PARDG_INCLUDE_HH
2 #define PARDG_INCLUDE_HH
3 
4 #include <unistd.h>
5 #include <time.h>
6 #include <sys/times.h>
7 
8 #include <cassert>
9 #include <cmath>
10 #include <vector>
11 #include <cstdlib>
12 #include <cstring>
13 #include <iostream>
14 
15 #define USE_PARDG_ODE_SOLVER
16 
17 // use different namespaces in case of MPI or not
18 #if HAVE_MPI
19 #include <mpi.h>
20 #define PARDG_NS parDG_MPI
21 #else
22 #define PARDG_NS parDG_NoMPI
23 #endif
24 
25 // define combined namespace for later use
26 #define PARDG PARDG_NS::pardg
27 
28 // if the preprocessor variable is defined, the ODE Solver from Dennis
29 // are used.
30 #ifdef USE_PARDG_ODE_SOLVER
31 
32 // timer has no namespace therefore we put here
33 namespace PARDG_NS {
34 namespace pardg {
35 // if pardg library was found
36 #include "ode/timer.hpp"
37 } // end namespace pardg
38 
39 // include pardg communicator
40 #include "ode/communicator.hpp"
41 } // end namespace PARDG_NS
42 
43 namespace PARDG_NS {
44 namespace pardg {
45 // we also need vector to be in namespace parDG
46 #include "ode/vector.hpp"
47 } // end namespace pardg
48 #include "ode/blas.hpp"
49 #include "ode/quadrature.hpp"
50 #include "ode/function.hpp"
51 #include "ode/ode_solver.hpp"
52 #include "ode/linear_solver.hpp"
53 } // end namespace PARDG_NS
54 
55 #endif // end USE_PARDG_ODE_SOLVER
56 
57 #endif // #ifndef PARDG_INCLUDE_HH
Definition: pardg.hh:33