Skip to content

Commit

Permalink
Merge pull request #461 from boutproject/v4.0.0-RC
Browse files Browse the repository at this point in the history
Release v4.0.0
  • Loading branch information
ZedThree authored Feb 3, 2017
2 parents 11e8f23 + 30f51e7 commit 3571609
Show file tree
Hide file tree
Showing 600 changed files with 70,013 additions and 28,340 deletions.
57 changes: 57 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -2
ConstructorInitializerIndentWidth: 4
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AlwaysBreakTemplateDeclarations: false
AlwaysBreakBeforeMultilineStrings: false
BreakBeforeBinaryOperators: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BinPackParameters: true
ColumnLimit: 90
ConstructorInitializerAllOnOneLineOrOnePerLine: false
DerivePointerAlignment: false
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: false
IndentWrappedFunctionNames: false
IndentFunctionDeclarationAfterType: false
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: true
NamespaceIndentation: None
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakString: 1000
PenaltyBreakFirstLessLess: 120
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
SpacesBeforeTrailingComments: 1
Cpp11BracedListStyle: true
Standard: Cpp11
IndentWidth: 2
TabWidth: 8
UseTab: Never
BreakBeforeBraces: Attach
SpacesInParentheses: false
SpacesInAngles: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: true
SpaceBeforeAssignmentOperators: true
ContinuationIndentWidth: 4
CommentPragmas: '^ IWYU pragma:'
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
SpaceBeforeParens: ControlStatements
DisableFormat: false
...

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
.svn/
.tmtags
autom4te.cache/
aclocal.m4
data_*
test*.py
/bin/bout-config
Expand Down
56 changes: 51 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,56 @@
sudo: required
dist: trusty
language: cpp
compiler: gcc
python:
- "3.5"
matrix:
include:
- env: CONFIGURE_OPTIONS='--enable-openmp'
- env: CONFIGURE_OPTIONS='--enable-debug'
allow_failures:
- env: CONFIGURE_OPTIONS='' MPICH_CC=clang MPICH_CXX=clang++
compiler: clang
- env: CONFIGURE_OPTIONS='--enable-openmp' MPICH_CC=clang MPICH_CXX=clang++
compiler: clang
- env: CONFIGURE_OPTIONS='--enable-debug' MPICH_CC=clang MPICH_CXX=clang++
compiler: clang

before_install:
##################################################
# System packages
##################################################
- sudo apt-get update -qq
- sudo apt-get install -y mpich2 libmpich2-dev
- sudo apt-get install -y libfftw3-dev libnetcdf-dev
- sudo apt-get install -y python-numpy python-netcdf python-scipy
- sudo apt-get install -y python-matplotlib
- sudo apt-get install -qq openmpi-bin libopenmpi-dev
libfftw3-dev libnetcdf-dev
libhdf5-serial-dev netcdf-bin
hdf5-tools

##################################################
# Install Conda for python 3
##################################################
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=3.5 numpy scipy netcdf4
- source activate test-environment

##################################################

# Make sure to use the system NetCDF/HDF5 libraries, or we end up
# using the Conda libraries, which causes no end of headaches
- export CONFIGURE_OPTIONS="--with-netcdf=/usr/bin/nc-config --with-hdf5=/usr/bin/h5cc $CONFIGURE_OPTIONS"

script:
- ./configure && make && ./.travis_script.sh
# Configure, compile and run test_suite
- "./.travis_script.sh"

notifications:
# Send a notification to the BOUT++ Slack team
slack:
secure: keU2ApI8C1M5q1700iNWmhzAQN5iJCciuP6V1lAjVBE8C2C/8mnYK3Pe83wok97buvvfVs5Qjq1+MSYSTCEw+dEye7p+1aBH7qg8C2Jyw+ugFe+6vmijag3v8DqkkzUGyF4X7+ei7YfV4G7u7YAlq/BqzD9e0SA7aASZJ3CF42f4lHKwTe0mnJfqOb8MwCBbSytzdj/iQH/O/pch03CjVObv2A88gaC5YMwYpeTAMMNGZThHsJHcVFCAz4MbvOApKSnykbRbE4AooF6lhUnAg/V40+ews5Q0NhYSLoOcQohLljLTMKAL2oRS34WdunnAEdIighLztFBNI/CKO8uaFBsWZcT2E4qRrajYTnuhCop5fUtk2lsrwUV36WFKLswa74KaSjXgpjvrV1MIidkRztPhYwcJdk9yvEroZ67C4GPBLZ6jZF/nUU9l2toPNkzGkxhDB9r9MIU2l0PJ2d3wRCcZ59jZ/Gr1Bminsyr20AU1JO5tsiO+6UI+7hxXQXtz/1knlmiZ/pXj/3Sp8+KQ/Z0MUeayC0CROFoZt/HekA6z34YcmeN/nMcXCnO7HTZ+bw7LasaIsrHbQ3PYPn8Be2f1hj4sPBnPpruN5FFYYc29c/ek8FET9LLD8a3v1V8P2udy/y5RnDqFskx+OfqKL8tSJk/zSbK/JPCTnx1rfsU=
18 changes: 17 additions & 1 deletion .travis_script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/bin/bash

./configure $CONFIGURE_OPTIONS
conf=$?
if test $conf -gt 0
then
echo
echo "Printing config.log:"
echo
echo
cat config.log
echo
echo "Printing config-build.log:"
echo
echo
cat config-build.log
exit $conf
fi
make || exit
export PYTHONPATH=$(pwd)/tools/pylib/:$PYTHONPATH
cd ./examples
./test_suite_make && ./test_suite
Loading

0 comments on commit 3571609

Please sign in to comment.