You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tobias Lindstrøm Jensen 0786a70bd9 updated with bash scripts and anaconda installation notes 1 year ago updated with bash scripts and anaconda installation notes 1 year ago example seq 1 year ago initial commit with htc file 1 year ago

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@ -i stratocommon.pem -X

Then execute the following in the instance to setup your environment

sudo dpkg --add-architecture i386 
wget -nc
sudo apt-key add winehq.key
sudo add-apt-repository 'deb bionic main' 
sudo apt-get update
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
sudo apt-get -y install unzip
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 
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.

echo "$anacondaType" 
wget -q$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


and then execute with

chmod +x

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.


Wine installation guide

Additional Wine steps for Ubuntu 18.04

HAWC2 download