diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f2557ea7d8dfacdc8d2ab264e6fcd4506200bca..1b302bbb07dcc6199bfc7738fd4f4472238bfa6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,15 +15,15 @@ Python 2.7 POCL: reports: junit: test/pytest.xml -Python 3.6 POCL: +Python 3 POCL: script: - - export PY_EXE=python3.6 + - export PY_EXE=python3 - export PYOPENCL_TEST=portable - export EXTRA_INSTALL="pybind11 numpy scipy mako" - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh - ". ./build-and-test-py-project.sh" tags: - - python3.6 + - python3 - pocl - large-node except: @@ -32,32 +32,16 @@ Python 3.6 POCL: reports: junit: test/pytest.xml -Python 3.7 POCL: +Python 3 POCL Examples: script: - - export PY_EXE=python3.7 - - export PYOPENCL_TEST=portable - - export EXTRA_INSTALL="pybind11 numpy scipy mako" - - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh - - ". ./build-and-test-py-project.sh" - tags: - - python3.7 - - pocl - - large-node - except: - - tags - artifacts: - reports: - junit: test/pytest.xml - -Python 3.6 POCL Examples: - script: - - export PY_EXE=python3.6 + - test -n "$SKIP_EXAMPLES" && exit + - export PY_EXE=python3 - export PYOPENCL_TEST=portable - export EXTRA_INSTALL="pybind11 numpy mako pyvisfile matplotlib" - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-py-project-and-run-examples.sh - ". ./build-py-project-and-run-examples.sh" tags: - - python3.6 + - python3 - pocl - large-node except: @@ -66,7 +50,7 @@ Python 3.6 POCL Examples: reports: junit: test/pytest.xml -Python 3.6 Conda: +Python 3 Conda: script: - export SUMPY_FORCE_SYMBOLIC_BACKEND=symengine - CONDA_ENVIRONMENT=.test-conda-env-py3.yml @@ -83,7 +67,7 @@ Python 3.6 Conda: reports: junit: test/pytest.xml -Python 3.6 Conda Apple: +Python 3 Conda Apple: script: - export LC_ALL=en_US.UTF-8 - export LANG=en_US.UTF-8 @@ -115,7 +99,7 @@ Documentation: - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-docs.sh - ". ./build-docs.sh" tags: - - python3.5 + - python3 only: - master @@ -124,6 +108,6 @@ Flake8: - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh - ". ./prepare-and-run-flake8.sh pytential test examples" tags: - - python3.5 + - python3 except: - tags diff --git a/pytential/qbx/__init__.py b/pytential/qbx/__init__.py index 188660f72b642ca67d0882a9e92b25e211e717fa..832ddcbcf2d2f5caff9f57c4d2fdf525047240f0 100644 --- a/pytential/qbx/__init__.py +++ b/pytential/qbx/__init__.py @@ -492,9 +492,9 @@ class QBXLayerPotentialSource(LayerPotentialSourceBase): @memoize_method def _expansion_radii(self, last_dim_length): with cl.CommandQueue(self.cl_context) as queue: - return (self._coarsest_quad_resolution(last_dim_length) - .with_queue(queue) - * 0.5 * self._dim_fudge_factor()).with_queue(None) + return (self._coarsest_quad_resolution(last_dim_length) + .with_queue(queue) + * 0.5 * self._dim_fudge_factor()).with_queue(None) # _expansion_radii should not be needed for the fine discretization @@ -522,10 +522,10 @@ class QBXLayerPotentialSource(LayerPotentialSourceBase): @memoize_method def _close_target_tunnel_radius(self, last_dim_length): with cl.CommandQueue(self.cl_context) as queue: - return ( - self._expansion_radii(last_dim_length).with_queue(queue) - * 0.5 - ).with_queue(None) + return ( + self._expansion_radii(last_dim_length).with_queue(queue) + * 0.5 + ).with_queue(None) @memoize_method def _coarsest_quad_resolution(self, last_dim_length="npanels"):