Closed pemd-sys closed 1 year ago
This is probably because you are running against DOLFINx main. The current code is built against v0.5.2, which does not include https://github.com/FEniCS/dolfinx/pull/2310
This will be fixed at the next release (0.6.0 of DOLFINx).
For now, you can resolve this by changing form_compiler_params
to form_compiler_options
and jit_params
to jit_options
I ran the fenics docker with nightly build and ran the team30 code on it. it worked fine.
Closed
Hi I cloned the git repo and ran the docker container and then ran the pytest command, but it exited with errors. Can you please let me know what i can do to run the examples. Many thanks.
matrix@matrix-VirtualBox:~/Downloads$ git clone https://github.com/Wells-Group/TEAM30.git
Cloning into 'TEAM30'...
remote: Enumerating objects: 568, done.
remote: Counting objects: 100% (146/146), done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 568 (delta 36), reused 60 (delta 24), pack-reused 422
Receiving objects: 100% (568/568), 168.84 KiB | 588.00 KiB/s, done.
Resolving deltas: 100% (332/332), done.
matrix@matrix-VirtualBox:~/Downloads$ docker run -ti -v $(pwd):/root/shared -w /root/shared/ --shm-size=512m --name=team30 ghcr.io/jorgensd/dolfinx_team30:v0.5.0.post0
root@fcde5b9ac435:~/shared# ls
TEAM30 fenics-tutorial-notebook test
root@fcde5b9ac435:~/shared# cd TEAM30/
root@fcde5b9ac435:~/shared/TEAM30# python3 -m pytest -xvs
=========================================================================================== test session starts ===========================================================================================
platform linux -- Python 3.10.4, pytest-7.1.3, pluggy-1.0.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /root/shared/TEAM30
plugins: forked-1.4.0, xdist-2.5.0
collected 2 items
test_team30.py::test_team30[1-True]
Parametric sweep: 0%| | 0/10 [00:00<?, ?it/s]FAILED
================================================================================================ FAILURES =================================================================================================
___ test_team30[1-True] ___
single_phase = True, degree = 1
test_team30.py:50:
single_phase = True, num_phases = 6, omega_u = 0.0, degree = 1, petsc_options = {'ksp_type': 'preonly', 'pc_type': 'lu'}, form_compiler_options = {}, jit_parameters = {}, apply_torque = False
T_ext = <function at 0x7f29b53be050>, outdir = 'Test_results_single', steps_per_phase = 720
outfile = <_io.TextIOWrapper name='Test_results_single/results_single_1.txt' mode='w' encoding='UTF-8'>, plot = False, progress = False, mesh_dir = 'Test_results_single', save_output = False
E TypeError: form() got an unexpected keyword argument 'form_compiler_options'
team30_A_phi.py:192: TypeError
============================================================================================ warnings summary =============================================================================================
test_team30.py::test_team30[1-True]
/root/shared/TEAM30/test_team30.py:43: ParserWarning: Falling back to the 'python' engine because the 'c' engine does not support regex separators (separators > 1 char and different from '\s+' are interpreted as regex); you can avoid this warning by specifying engine='python'.
test_team30.py::test_team30[1-True]
/usr/local/lib/python3.10/dist-packages/cffi/ffiplatform.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
test_team30.py::test_team30[1-True]
/usr/lib/python3.10/distutils/command/build_ext.py:13: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================================= short test summary info =========================================================================================
FAILED test_team30.py::test_team30[1-True] - TypeError: form() got an unexpected keyword argument 'form_compiler_options'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================================== 1 failed, 3 warnings in 7.57s ======================================================================================
Parametric sweep: 0%| | 0/10 [00:01<?, ?it/s]