Peano
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1# This file is part of the ExaHyPE2 project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
3import exahype2.tracer
4import exahype2.grid
5import exahype2.kerneldsl
6
10
11
12havenumpy = False
13try:
14 import numpy
15 havenumpy = True
16except ImportError:
17 print("Numpy is not available, not loading exahype2.symhype.")
18 print("Numpy is not available, not loading exahype2.solvers.rkdg.")
19 print("Numpy is not available, not loading exahype2.solvers.aderdg.")
20
21havempmath = False
22try:
23 import mpmath
24 havempmath = True
25except ImportError:
26 print("Mpmath is not available, not loading exahype2.solvers.rkdg.")
27 print("Mpmath is not available, not loading exahype2.solvers.aderdg.")
28
29if havenumpy and havempmath:
33
34havesympy = False
35try:
36 import sympy
37 havesympy = True
38except ImportError:
39 print("Sympy is not available, not loading exahype2.symhype.")
40
41if havenumpy and havesympy:
42 import exahype2.symhype
43
44havematplotlib = False
45try:
46 import matplotlib
47 havematplotlib = True
48except ImportError:
49 print("Matplotlib is not available, not loading exahype2.postprocessing.")
50
51if havematplotlib:
52 import exahype2.postprocessing
53
54from .Project import Project
55from .ExaHyPEMain import ExaHyPEMain
56
57print("ExaHyPE 2 (C) www.peano-framework.org")