mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-27 19:48:52 +08:00
Merge pull request #193 from simpeg/feat/pymatsolver
Speed up the tests with pymatsolver.
This commit is contained in:
+15
-2
@@ -4,6 +4,16 @@ python:
|
||||
|
||||
sudo: false
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- gcc
|
||||
- gfortran
|
||||
- libopenmpi-dev
|
||||
- libmumps-seq-dev
|
||||
- libblas-dev
|
||||
- liblapack-dev
|
||||
|
||||
env:
|
||||
- TEST_DIR="tests/mesh tests/base tests/utils"
|
||||
- TEST_DIR=tests/examples
|
||||
@@ -23,9 +33,12 @@ before_install:
|
||||
|
||||
# Install packages
|
||||
install:
|
||||
- conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib cython ipython
|
||||
- conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib cython ipython nose
|
||||
- pip install nose-cov python-coveralls
|
||||
# - pip install -r requirements.txt
|
||||
|
||||
- git clone https://github.com/rowanc1/pymatsolver.git
|
||||
- cd pymatsolver; python setup.py install; cd ..
|
||||
|
||||
- python setup.py install
|
||||
- python setup.py build_ext --inplace
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ def derivTest(fdemType, comp):
|
||||
survey = prb.survey
|
||||
def fun(x):
|
||||
return survey.dpred(x), lambda x: prb.Jvec(x0, x)
|
||||
return Tests.checkDerivative(fun, x0, num=3, plotIt=False, eps=FLR)
|
||||
return Tests.checkDerivative(fun, x0, num=2, plotIt=False, eps=FLR)
|
||||
|
||||
|
||||
class FDEM_DerivTests(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user