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
5
9
10havenumpy = False
11try:
12 import numpy
13 havenumpy = True
14except ImportError:
15 print("Numpy is not available, not loading exahype2.symhype.")
16 print("Numpy is not available, not loading exahype2.solvers.rkdg.")
17 print("Numpy is not available, not loading exahype2.solvers.aderdg.")
18
19havempmath = False
20try:
21 import mpmath
22 havempmath = True
23except ImportError:
24 print("Mpmath is not available, not loading exahype2.solvers.rkdg.")
25 print("Mpmath is not available, not loading exahype2.solvers.aderdg.")
26
27if havenumpy and havempmath:
31
32havesympy = False
33try:
34 import sympy
35 havesympy = True
36except ImportError:
37 print("Sympy is not available, not loading exahype2.symhype.")
38
39if havenumpy and havesympy:
40 import exahype2.symhype
41
42havematplotlib = False
43try:
44 import matplotlib
45 havematplotlib = True
46except ImportError:
47 print("Matplotlib is not available, not loading exahype2.postprocessing.")
48
49if havematplotlib:
50 import exahype2.postprocessing
51
52from .Project import Project
53from .ExaHyPEMain import ExaHyPEMain
54
55print("ExaHyPE 2 (C) www.peano-framework.org")