|
3 years ago | |
---|---|---|
README.md | 3 years ago | |
seq_hawc2.sh | 3 years ago | |
wsp30yaw20ts03.htc | 3 years ago |
README.md
Guide for installing
First make a new instance. Follow e.g. this guide. You mentioned some pre/post processing with Matlab, so try start from the Matlab R2019b variant.
Connect to your strato instances e.g. -- its important to use -X argument as the HAWC2 will open some X during license verification and install additional packages. Try follow the guide here under X11 forwarding.
$ ssh ubuntu@130.226.98.77 -i stratocommon.pem -X
Then execute the following in the instance to setup your environment
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt-get update
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/amd64/libfaudio0_19.07-0~bionic_amd64.deb
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/i386/libfaudio0_19.07-0~bionic_i386.deb
sudo apt-get -y install libsdl2-2.0-0
sudo dpkg -i libfaudio0_19.07-0~bionic_amd64.deb
sudo dpkg -i libfaudio0_19.07-0~bionic_i386.deb
sudo apt-get --fix-broken -y install
sudo apt-get install -y --install-recommends winehq-stable
mkdir HAWC2
cd HAWC2
wget http://tools.windenergy.dtu.dk/HAWC2/downloads/HAWC2_12.8_1900.zip
sudo apt-get -y install unzip
unzip HAWC2_12.8_1900.zip
wine HAWC2MB.exe
Click ok on the dialog box to install additional software. One can then test by uploading (with e.g. scp or a GUI tool such as FileZilla, see the end of this document) htc file and then do
cd ~
wine HAWC2/HAWC2MB.exe wsp30yaw20ts03.htc
cat log/wsp30yaw20ts03
If things are working for you, you can start more instances and run the same line of commands to install on these instances.
Anaconda
anacondaType=Anaconda3-2019.10-Linux-x86_64.sh
echo "$anacondaType"
wget -q https://repo.anaconda.com/archive/$anacondaType
chmod +x $anacondaType
./$anacondaType -b -p
sudo rm -f $anacondaType
export PATH="$HOME/anaconda3/bin:$PATH"
conda init bash
Bash script for running multiple simulations sequential
Try out this script. You e.g.~get it with
wget https://git.its.aau.dk/CLAAUDIA/consult_ES.2009.Santhanam/raw/branch/master/seq_hawc2.sh
and then execute with
chmod +x seq_hawc2.sh
./seq_hawc2.sh
Running multiple simulations in parallel
One can run in parallel as well with using bash parallel such as
ls *.htc | parallel --jobs 4 'wine ~/HAWC2/HAWC2MB.exe {}'
which will run though all htc files in directory and execute HAWC2.exe on them in parallel with no more than 4 jobs at a time.