-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
56 lines (38 loc) · 1.21 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
Coupling_SNAC_CHILD
===================
1. Building without Pythia
1.1 set environments
For example, in bash,
export SNAC_DIR=${HOME}/projects/Coupling_SNAC_CHILD/SNAC_CHILD/build-optimised
export SNAC_BINDIR=${SNAC_DIR}/bin
export SNAC_INCDIR=${SNAC_DIR}/include
export SNAC_LIBDIR=${SNAC_DIR}/lib
export SNAC_MODDIR=${SNAC_DIR}/Python
export PATH=${SNAC_BINDIR}:${PATH}
export DYLD_LIBRARY_PATH=$SNAC_LIBDIR:${DYLD_LIBRARY_PATH}
export PYTHONPATH=${SNAC_MODDIR}:${PYTHONPATH}
1.2 build child
cd child/bin
make -f child_so.mk
Note that a correct build type and compiler should be specified in child_so.mk, which are collected in separage make files such as gcc.mk, gcc_shared.mk, gccmac.mk, and gccmac_shared.mk.
1.3 build childInterface
cd childInterface
make
1.4 build SNAC
cd SNAC_CHILD
./configure --options=optimised
make
1.5 Test
cd models
cd SnacTest1
Snac ./testsnac.xml
1.6 Post-process results
In models/SnacTest1,
SNAC:
snac2vtk ./newdata 1 10000000000
CHILD:
../child/Viz/child2vtk
(give your child output prefix when prompted,
which is specified in the input file for CHILD. testchild.in, for instance.)
1.7 Visualize results
Both codes produce (p)vtk files. One can use VisIt or ParaView to visualize them.