Skip to content

Commit d453aa5

Browse files
committed
add Spectral-Weighting as sw
1 parent a393a1e commit d453aa5

File tree

1 file changed

+34
-0
lines changed
  • src/scripts/mknemo.d

1 file changed

+34
-0
lines changed

src/scripts/mknemo.d/sw

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#! /bin/bash
2+
#
3+
# https://zenodo.org/records/10766405
4+
# https://iopscience.iop.org/article/10.3847/1538-4365/ad36c8#new_tab
5+
#
6+
7+
git=1
8+
url=https://github.com/GiuliaMurgia03/Spectral-Weighting
9+
name=SpectralWeighting
10+
11+
for arg in $*; do
12+
export $arg
13+
done
14+
15+
cd $NEMO/local
16+
17+
if [ $git == 1 ]; then
18+
if [ ! -d hypre ]; then
19+
git clone $url hypre
20+
fi
21+
version=git
22+
else
23+
echo no non-git
24+
exit 1
25+
fi
26+
27+
cd Spectral-Weighting
28+
git pull
29+
30+
# @todo inherit compiler from $NEMOLIB/makedefs
31+
g++ -o $NEMOBIN/$name src/*.cpp -lcfitsio
32+
33+
echo 'Spectral-Weighting installed as $NEMOBIN/$name'
34+
echo "SpectralWeighting git `date`" >> $NEMO/opt/mknemo.log

0 commit comments

Comments
 (0)