Peano
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1""" This file is part of the ExaHyPE 2 project within Peano 4. For conditions of distribution and
2 use, please see the copyright notice at www.peano-framework.org
3"""
4import peano4.api
5
6import exahype2.api
7#import exahype2.tracer
8#import exahype2.grid
9#import exahype2.dslhype
10
11#import exahype2.solvers.fv
12#import exahype2.solvers.rkfd
13#import exahype2.solvers.elliptic
14
15ASCII_ART_HEADER = r"""
16 ___ _ _ ___ ___
17| __|_ ____ _| || |_ _| _ \ __|
18| _|\ \ / _` | __ | || | _/ _|
19|___/_\_\__,_|_||_|\_, |_| |___|
20 |__/
21"""
22COPYRIGHT_HEADER = "ExaHyPE 2x extension"
23
24peano4.api.Logger().log(ASCII_ART_HEADER, peano4.api.LoggerPrintOption.ALWAYS_PRINT)
25peano4.api.Logger().log(COPYRIGHT_HEADER, peano4.api.LoggerPrintOption.ALWAYS_PRINT)
26
27
28havenumpy = False
29try:
30 import numpy
31 havenumpy = True
32except ImportError:
33 print("Numpy is not available, not loading exahype2.symhype.")
34 print("Numpy is not available, not loading exahype2.solvers.rkdg.")
35 print("Numpy is not available, not loading exahype2.solvers.aderdg.")
36
37havempmath = False
38try:
39 import mpmath
40 havempmath = True
41except ImportError:
42 print("Mpmath is not available, not loading exahype2.solvers.rkdg.")
43 print("Mpmath is not available, not loading exahype2.solvers.aderdg.")
44
45if havenumpy and havempmath:
46 #import exahype2.solvers.rkdg
47 #import exahype2.solvers.aderdg
48 #import exahype2.solvers.limiting
49 pass
50
51havesympy = False
52try:
53 import sympy
54 havesympy = True
55except ImportError:
56 print("Sympy is not available, not loading exahype2.symhype.")
57
58if havenumpy and havesympy:
59 #import exahype2.symhype
60 pass
61
62havematplotlib = False
63try:
64 import matplotlib
65 havematplotlib = True
66except ImportError:
67 print("Matplotlib is not available, not loading exahype2.postprocessing.")
68
69if havematplotlib:
70 #import exahype2.postprocessing
71 pass
72
73#from .Project import Project
74#from .ExaHyPEMain import ExaHyPEMain
75
Singleton logger for the Peano 4 Python API.
Definition Logger.py:37