Python DUNE_PY_DIR not created before checking for petsc configuration.
When using the precompiled modules I came across the following problem. After removing the cache I ran this script and it fails with a message that PETSc was not found.
raise ConfigurationError("petsc has not been found during configuration of dune - please add the path to petsc to the DUNE_CMAKE_FLAGS")
dune.generator.exceptions.ConfigurationError: petsc has not been found during configuration of dune - please add the path to petsc to the DUNE_CMAKE_FLAGS
This is because for some reasons the creation of dune-py
is not triggered. Probably this never occured before, because the grid compilation would trigger the creation of dune-py
.
This code triggers the bug.
from dune.fem.space import lagrange
from dune.alugrid import aluConformGrid
from dune.grid import cartesianDomain
domain = cartesianDomain([0,0] , [1,1], [16,16])
view = aluConformGrid( domain )
spc = lagrange(view, order=1, storage='petsc')`
Edited by Robert K