Peano 4
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1# This file is part of the Peano project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
3
4
5print("Peano 4 (C) www.peano-framework.org")
6
7havevtk=False
8try:
9 import vtk
10 havevtk=True
11except ImportError:
12 print("VTK is not available, not loading peano4.visualisation.")
13
14haveparaview=False
15try:
16 import paraview
17 haveparaview=True
18except ImportError:
19 print("ParaView is not available, not loading peano4.visualisation.")
20
21if havevtk and haveparaview:
22 import peano4.visualisation
23
24try:
25 import jinja2
26except ImportError:
27 print("WARNING: Jinja2 is not available, cannot generate glue code. Most Peano 4 features will be unavailable")
28
29try:
30 import peano4.datamodel
31 import peano4.solversteps
32 import peano4.output
33 import peano4.toolbox
34
35 from .Project import Project
36 from .Project import merge
37except ImportError as error:
38 print( "Peano core project files cannot be loaded: {}".format(error) )
39
40