Skip to content

Commit

Permalink
Powershell script for downloading dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsteinmo committed Apr 11, 2018
1 parent 455e0a1 commit d429b2d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@

blitzdg is an open-source project aiming to implement parallel discontinuous Galerkin (dg) solvers for common partial differential equations systems using blitz++ for array and tensor manipulations and MPI for distributed parallelism.

[![Build Status](https://travis-ci.org/dsteinmo/blitzdg.svg?branch=master)](https://travis-ci.org/dsteinmo/blitzdg) [![Coverage Status](https://coveralls.io/repos/github/dsteinmo/blitzdg/badge.svg)](https://coveralls.io/github/dsteinmo/blitzdg)

[![Windows Build Status](https://ci.appveyor.com/api/projects/status/pmx725yhsrnq3thu?svg=true)](https://ci.appveyor.com/project/dsteinmo/blitzdg)
[![Build Status](https://travis-ci.org/dsteinmo/blitzdg.svg?branch=master)](https://travis-ci.org/dsteinmo/blitzdg) [![Coverage Status](https://coveralls.io/repos/github/dsteinmo/blitzdg/badge.svg)](https://coveralls.io/github/dsteinmo/blitzdg) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/pmx725yhsrnq3thu?svg=true)](https://ci.appveyor.com/project/dsteinmo/blitzdg)

## Running

Currently only supporting running/development on linux systems, primarily ubuntu. Tested with GNU g++ compiler and GNU make.
Build and development support has broadened from linux only to Mac OSX and Windows systems. Tested with GNU make (written to be cross-platform) and g++ on linux/MinGW64/Mac OSX Sierra.

1. `git clone https://github.com/dsteinmo/blitzdg.git`
2. `cd blitzdg && ./pull-deps.sh`
2. `cd blitzdg && ./pull-deps.sh` (on Mac OSX: `./pull-deps-mac`)
3. `make && ./bin/blitzdg` (The binary currently doesn't do much).
4. Run unit tests with `make test`.

### Running with Docker

You can also run the build and tests inside a docker container.
You can also run the build and tests inside a docker (linux) container.

1. `git clone https://github.com/dsteinmo/blitzdg.git && cd blitzdg`
2. `docker build -t blitzdg .`
Expand All @@ -34,7 +32,13 @@ So far:
* `boost`
* `igloo` for BDD-style testing.

Dependency installation is outlined in `pull-deps.sh` (tested on Ubuntu) and `pull-deps-mac.sh` (test on Mac OSX Sierra).
Dependency installation is outlined in `pull-deps.sh` (tested on Ubuntu) and `pull-deps-mac.sh`.

### Windows Dependencies

The Windows build requires [MinGW/MinGW64](http://www.mingw.org/wiki/Getting_Started "MinGW Installation Instructions") and is currently tested in the AppVeyor CI process. There is currently not a Visual Studio/MSVC build.

Run `.\pull-deps.ps1` in Powershell (4+ or Powershell Core (pwsh)).

## Contributing

Expand Down
7 changes: 7 additions & 0 deletions pull-deps.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Assumes MinGW64 installation exists.
$ErrorActionPreference = 'Stop'

Invoke-RestMethod -Uri https://s3.amazonaws.com/dsteinmo-libs/include-deps.zip -OutFile include-deps.zip
Invoke-RestMethod -Uri https://s3.amazonaws.com/dsteinmo-libs/deps-win-mingw64.zip -OutFile deps-win-mingw64.zip
Expand-Archive -Path include-deps.zip -DestinationPath .\include\
Expand-Archive -Path deps-win-mingw64.zip -DestinationPath .\lib\

0 comments on commit d429b2d

Please sign in to comment.