forked from echoi/Coupling_SNAC_CHILD
-
Notifications
You must be signed in to change notification settings - Fork 0
GeoFLAC/Coupling_SNAC_CHILD
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C++ 43.5%
- C 37.4%
- Shell 4.4%
- Python 4.1%
- Makefile 2.2%
- PostScript 1.7%
- Other 6.7%