diff --git a/tools/vagrant/README.md b/tools/vagrant/README.md deleted file mode 100644 index 0adb67fa67..0000000000 --- a/tools/vagrant/README.md +++ /dev/null @@ -1,12 +0,0 @@ -This is a basic vagrant config which you can use to compile and run BOUT++ on your local machine. For more info on vagrant see https://www.vagrantup.com/. - -To use it, cd into this directory and run: - - vagrant up # this creates the VM, installs BOUT including dependencies and runs all the tests. - vagrant ssh # logs in to the VM. - -At this point you should be able to run one of the examples: - - cd BOUT/examples/conduction # find a simple example. - make # compile the example. - mpirun -np 2 ./conduction # run the example. diff --git a/tools/vagrant/Vagrantfile b/tools/vagrant/Vagrantfile deleted file mode 100644 index 0b0b3bc49c..0000000000 --- a/tools/vagrant/Vagrantfile +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -VAGRANTFILE_API_VERSION = "2" - -Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - config.vm.box = "ubuntu/trusty64" - config.vm.provision :shell, path: "bootstrap.sh" -end diff --git a/tools/vagrant/bootstrap.sh b/tools/vagrant/bootstrap.sh deleted file mode 100644 index 6737eac53c..0000000000 --- a/tools/vagrant/bootstrap.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -# install dependencies -apt-get update -apt-get install -y mpich2 libmpich2-dev -apt-get install -y libfftw3-dev libnetcdf-dev -apt-get install -y g++ make -apt-get install -y python-scipy - -# get the bout++ code -apt-get install -y git -rm -rf BOUT -git clone https://github.com/bendudson/BOUT.git - -# environment variables for both this session and the vagrant user -echo "export IDL_PATH=$(pwd)/BOUT/tools/idllib" >> $(pwd)/.bashrc -echo "export PYTHONPATH=$(pwd)/BOUT/tools/pylib/:$PYTHONPATH" >> $(pwd)/.bashrc -source $(pwd)/.bashrc -export IDL_PATH=$(pwd)/BOUT/tools/idllib -export PYTHONPATH=$(pwd)/BOUT/tools/pylib/:$PYTHONPATH - -# configure bout++ -cd BOUT -./configure -make -cd examples -./test_suite - -# set owner to vagrant user so compilation works -cd ../.. -chown -R vagrant:vagrant BOUT