diff --git a/.github/workflows/fenicsx-tests.yml b/.github/workflows/fenicsx-tests.yml index 6363a55bf..a3f8581e8 100644 --- a/.github/workflows/fenicsx-tests.yml +++ b/.github/workflows/fenicsx-tests.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.12 - name: Install test dependencies run: | @@ -30,7 +30,7 @@ jobs: - name: Install UFL run: | - pip3 install . + pip3 install --break-system-packages . - name: Install Basix run: | @@ -65,12 +65,12 @@ jobs: - name: Install UFL run: | - pip3 install . + pip3 install --break-system-packages . - name: Install Basix and FFCx run: | - python3 -m pip install git+https://github.com/FEniCS/basix.git - python3 -m pip install git+https://github.com/FEniCS/ffcx.git + python3 -m pip install --break-system-packages git+https://github.com/FEniCS/basix.git + python3 -m pip install --break-system-packages git+https://github.com/FEniCS/ffcx.git - name: Clone DOLFINx uses: actions/checkout@v4 @@ -83,6 +83,6 @@ jobs: cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build -S dolfinx/cpp/ cmake --build build cmake --install build - python3 -m pip -v install --no-build-isolation --check-build-dependencies --config-settings=cmake.build-type="Developer" dolfinx/python/ + python3 -m pip -v install --break-system-packages --no-build-isolation --check-build-dependencies --config-settings=cmake.build-type="Developer" dolfinx/python/ - name: Run DOLFINx unit tests run: python3 -m pytest -n auto dolfinx/python/test/unit diff --git a/doc/sphinx/source/manual/form_language.rst b/doc/sphinx/source/manual/form_language.rst index 3d20924de..1c9687893 100644 --- a/doc/sphinx/source/manual/form_language.rst +++ b/doc/sphinx/source/manual/form_language.rst @@ -764,11 +764,10 @@ Basic nonlinear functions Some basic nonlinear functions are also available, their meaning mostly obvious. -* ``abs(f)``: the absolute value of f. +The following functions are defined and should be imported from `ufl` -* ``sign(f)``: the sign of f (+1 or -1). -* ``pow(f, g)`` or ``f**g``: f to the power g, :math:`f^g` +* ``sign(f)``: the sign of f (+1 or -1). * ``sqrt(f)``: square root, :math:`\sqrt{f}` @@ -806,6 +805,14 @@ obvious. * ``bessel_K(nu, f)``: Modified Bessel function of the second kind, :math:`K_\nu(f)` +while the following Python built in functions can be used without an import statement + +* ``abs(f)``: the absolute value of f. + + +* ``pow(f, g)`` or ``f**g``: f to the power g, :math:`f^g` + + These functions do not accept non-scalar operands or operands with free indices or ``Argument`` dependencies.