-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathINSTALL
57 lines (49 loc) · 1.4 KB
/
INSTALL
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
EXAMPLE COMPILATION
Ubuntu 22.04.5 LTS (Apr 2, 2025)
# download source codes
mkdir ~/bin/
cd ~/bin/
git clone https://github.com/fmihpc/analysator
git clone https://github.com/fmihpc/rhybrid
git clone https://github.com/fmihpc/corsair
git clone https://github.com/fmihpc/vlsv
git clone https://github.com/fmihpc/pargrid
wget https://github.com/sandialabs/Zoltan/archive/refs/tags/v3.901.tar.gz
mv v3.901.tar.gz Zoltan-v3.901.tar.gz
tar -xzf ~/Dropbox/downz/Zoltan-v3.901.tar.gz -C ./
# compile Zoltan
cd Zoltan-3.901/
mkdir build
cd build
../configure --prefix=$HOME/bin/Zoltan-3.901/build
make
make install
# compile VLSV
cd ~/bin/vlsv
cp -p Makefile.arch Makefile.newuser
jed Makefile.newuser
CXXFLAGS = -O3 -std=c++17 -Wall
INC_SILO=
LIB_SILO=
jed Makefile
ARCH ?= newuser
default: lib
# and other necessary options for your local system
make
# compile Corsair and RHybrid
cd ~/bin/corsair/
mkdir ~/bin/corsair/src/user/rhybrid/
cp -p ~/bin/rhybrid/src/* ~/bin/corsair/src/user/rhybrid/
cd ~/bin/corsair/
cp -p Makefile.arch Makefile.newuser
jed Makefile.newuser
SIM=rhybrid
# and other necessary options for your local system
make
# perform a testrun
mkdir testrun
cd testrun
OMPI_MCA_io=^ompio mpirun -n 4 ../corsair_rhybrid --runconfig=${HOME}/bin/rhybrid/examples/mars.cfg
# visualize results with Analysator
PYTHONPATH=$PYTHONPATH:~/bin/analysator python ~/bin/rhybrid/tools/plotter_example_testrun.py
eog testrun.png