forked from mcellteam/gamer-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
94 lines (66 loc) · 2.28 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Release snapshot of GAMer
=========================
GAMer is a surface mesh improvement library included in the FEtk
software umbrella. It depends on Maloc a Minimal Abstraction Layer
for Object-oriented C, which all modules in FEtk depends on. Maloc
is provided in this snapshot.
Installation
------------
This installation instructions should work on any UNIX based platform.
# Only needed during install
export PREFIX=installation/path
export FETK_INCLUDE=$PREFIX/include
export FETK_LIBRARY=$PREFIX/lib
cd maloc
configure --prefix=$PREFIX
make
make install
cd gamer
configure --prefix=$PREFIX
make
make install
Installation of PyGAMer
~~~~~~~~~~~~~~~~~~~~~~~
cd gamer/swig
configure --prefix=$PREFIX
make
make install
To compile the Python extension module of GAMer you need to have SWIG,
the Python header files and NumPy installed.
For Python3 configuration set environment variable PYTHON
export PYTHON=/usr/bin/python3.2
Make sure to set LD_LIBRARY_PATH or (DYLD_LIBRARY_PATH on Mac) and
PYTHONPATH before you run any programs or try using PyGAMer
export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$PREFIX/lib/python2.6/site-packages:$PYTHONPATH
On Mac:
export DYLD_LIBRARY_PATH=$PREFIX/lib:$DYLD_LIBRARY_PATH
export PYTHONPATH=$PREFIX/lib/python2.6/site-packages:$PYTHONPATH
If you have another python installation than 2.6 you need to change that.
Installation of GAMer applications
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cd gamer/tools/{ImproveSurfMesh, MolecularMesh, GenerateMesh}
configure --prefix=$PREFIX
make
make install
PyGAMer
-------
PyGAMer is a Python wrapper of the core GAMer library. To test the
main functionality you can run the test script in gamer/swig/test.
cd gamer/swig/test
python gamer_test.py
Blender (upy)
-------------
A blender plug-in for GAMer is provided in:
gamer/tools/blender
In addition to following the instructions in the README file in the
blender directory you also need to have a functional PyGAMer installation.
For the blender plugin to work you also need to install upy. This software
is provided in the upy subdirectory.
cd upy
python setup.py install --prefix=$PREFIX
Contact
-------
Please report any problems to:
Johan Hake <[email protected]>
Oslo 20-12-12