#!/bin/bash
# All of the files for this lab can be obtained by direct download from
# PDC's Web site.  To simplify getting these files, copy this file 
# to your computer and execute it by typing:
#
# bash get_all.bash
# 
# It will download all the files from the Web for you.
# 
# The Mac does not have a built-in wget, so use curl instead by commenting
# in that line below and commenting out the wget one.

downloader="wget -c"
# downloader="curl -O"

base=http://www.pdc.kth.se/publications/talks/mpi/hybrid-lab

for i in NPB3.2-MZ.tar.gz \
    trapez.f \
    trapez.c \
    oned.c \
    oned.f
do ${downloader} ${base}/$i
done
