Skip to content

Commit 305ab47

Browse files
authored
Merge pull request #362 from pdziekan/subsidence_profile
Subsidence velocity with a profile
2 parents 25b06c1 + 98576a9 commit 305ab47

28 files changed

+213
-142
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ install:
150150
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then echo 'import sys; sys.path.insert(1, "/usr/local/lib/python2.7/site-packages")' >> /Users/travis/Library/Python/2.7/lib/python/site-packages/homebrew.pth; fi
151151
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install blitz boost-python; fi
152152
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install gnuplot; fi
153-
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then sudo pip2 install http://prdownloads.sourceforge.net/gnuplot-py/gnuplot-py-1.8.tar.gz?download; fi
154153
# https://github.com/pypa/pip/issues/3165
155154
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then sudo pip2 install -U matplotlib --ignore-installed six; fi
156155
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then sudo pip2 install -U pytest --ignore-installed six; fi
157156
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then sudo pip2 install --only-binary=numpy,scipy numpy scipy --ignore-installed six; fi
157+
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then sudo pip2 install http://prdownloads.sourceforge.net/gnuplot-py/gnuplot-py-1.8.tar.gz?download; fi
158158

159159
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then \curl -sSL https://get.rvm.io | bash -s -- --branch stable; fi
160160
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then rvm reload; fi

.travis_scripts/cuda.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ cd build
66
#if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then cmake ../; fi
77
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=$PY_LIB -DPYTHON_INCLUDE_DIR=$PY_INC; fi
88
cmake -DCMAKE_BUILD_TYPE=Debug ../
9-
VERBOSE=1 make
9+
VERBOSE=1 travis_wait 20 make -j2
1010
cmake -DCMAKE_BUILD_TYPE=Release ../
11-
VERBOSE=1 make
11+
VERBOSE=1 travis_wait 20 make -j2
1212
cd ../..
1313
set +ex # see https://github.com/travis-ci/travis-ci/issues/6522

.travis_scripts/icicle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -ex
55
mkdir build
66
cd build
77
#if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then cmake ../; fi
8-
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=${PY_LIB} -DPYTHON_INCLUDE_DIR=${PY_INC}; fi
8+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=${PY_LIB} -DPYTHON_INCLUDE_DIR=${PY_INC} -DBoost_NO_BOOST_CMAKE=ON; fi
99
# make with RelWithDebInfo to have high optimization with asserts on
1010
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
1111
VERBOSE=1 make

.travis_scripts/parcel.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ mkdir build
66
cd build
77
#if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then cmake ../; fi
88

9-
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=${PY_LIB} -DPYTHON_INCLUDE_DIR=${PY_INC}; fi
10-
9+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=${PY_LIB} -DPYTHON_INCLUDE_DIR=${PY_INC} -DBoost_NO_BOOST_CMAKE=ON; fi
1110
# make with RelWithDebInfo to have high optimization with asserts on
1211
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
1312
VERBOSE=1 make
@@ -26,7 +25,7 @@ cd ..
2625
# make libcloudph++ in Debug mode
2726
sudo rm -rf libcloudphxx/build/*
2827
cd libcloudphxx/build
29-
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=${PY_LIB} -DPYTHON_INCLUDE_DIR=${PY_INC}; fi
28+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=${PY_LIB} -DPYTHON_INCLUDE_DIR=${PY_INC} -DBoost_NO_BOOST_CMAKE=ON; fi
3029
cmake -DCMAKE_BUILD_TYPE=Debug ../
3130
VERBOSE=1 make
3231
sudo make install

.travis_scripts/tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -ex
55
mkdir build
66
cd build
77
# if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'clang++' ]]; then cmake ../; fi
8-
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=${PY_LIB} -DPYTHON_INCLUDE_DIR=${PY_INC}; fi
8+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .. -DPYTHON_LIBRARY=${PY_LIB} -DPYTHON_INCLUDE_DIR=${PY_INC} -DBoost_NO_BOOST_CMAKE=ON; fi
99
cmake -DCMAKE_BUILD_TYPE=Debug ../
1010
VERBOSE=1 make
1111
OMP_NUM_THREADS=4 make test || cat Testing/Temporary/LastTest.log / # "/" intentional! (just to make cat exit with an error code)

bindings/python/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ target_link_libraries(cloudphxx ${PYTHON_LIBRARIES})
1515

1616
# informing the Python bindings where to find Boost.Python
1717
if(${Boost_MINOR_VERSION} LESS 67)
18+
message(STATUS "boost python as python")
1819
find_package(Boost COMPONENTS python)
1920
else()
21+
message(STATUS "boost python as python27")
2022
find_package(Boost COMPONENTS python27)
2123
endif()
2224
if (NOT Boost_FOUND)
@@ -29,11 +31,14 @@ target_link_libraries(cloudphxx ${Boost_LIBRARIES})
2931

3032
# boost python 1.65.0 replaced the booost::python::numeric API with boost::python::numpy
3133
if(${Boost_MINOR_VERSION} LESS 65)
34+
message(STATUS "boost numpy as DBPNUMERIC")
3235
target_compile_options(cloudphxx PRIVATE -DBPNUMERIC)
3336
else()
3437
if(${Boost_MINOR_VERSION} LESS 67)
38+
message(STATUS "boost numpy as numpy")
3539
find_package(Boost COMPONENTS numpy REQUIRED)
3640
else()
41+
message(STATUS "boost numpy as numpy27")
3742
find_package(Boost COMPONENTS numpy27 REQUIRED)
3843
endif()
3944
target_link_libraries(cloudphxx ${Boost_LIBRARIES})

0 commit comments

Comments
 (0)