COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
cf3
python
coolfluid.py
Go to the documentation of this file.
1
import
sys
2
if
sys.version_info < (2, 5):
3
import
dl
4
else
:
5
import
ctypes
as
dl
6
# This is needed to get MPI symbols to be visible
7
flags = sys.getdlopenflags()
8
sys.setdlopenflags(flags | dl.RTLD_GLOBAL)
9
10
# Import the C++ module
11
from
libcoolfluid_python
import
*
12
13
# Import unit test module
14
from
check
import
*
15
16
# restore the dlopen flags to default
17
sys.setdlopenflags(flags)
18
19
#initiate the CF3 environment. Note: there is no argv if executed from the ScriptEngine
20
if
sys.__dict__.has_key(
'argv'
):
21
Core.initiate(sys.argv)
22
23
# shortcut for root
24
root = Core.root()
25
26
# shortcut for environment
27
env = Core.environment()
28
29
# shortcut for libraries
30
libs = Core.libraries()
31
32
# shortcut for tools
33
tools = Core.tools()
34
Generated on Sun Jun 14 2015 21:20:12 for COOLFluiD by
1.8.9.1
Send comments to:
COOLFluiD Web Admin