You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "functional_issue.py", line 26, in <module>
main()
File "functional_issue.py", line 22, in main
J_h = discretize(J, domain_h, derham_h.V0)
File "/home/alex/repos/psydac/psydac/api/discretization.py", line 513, in discretize
return DiscreteFunctional(a, kernel_expr, *args, **kwargs)
File "/home/alex/repos/psydac/psydac/api/fem.py", line 1426, in __init__
BasicDiscrete.__init__(self, expr, kernel_expr, comm=comm, root=0, discrete_space=discrete_space,
File "/home/alex/repos/psydac/psydac/api/basic.py", line 298, in __init__
BasicCodeGen.__init__(self, expr, folder=folder, comm=comm, root=root, discrete_space=discrete_space,
File "/home/alex/repos/psydac/psydac/api/basic.py", line 108, in __init__
ast = self._create_ast( expr=expr, tag=tag, discrete_space=discrete_space,
File "/home/alex/repos/psydac/psydac/api/basic.py", line 339, in _create_ast
return AST(expr, kernel_expr, discrete_space, mapping_space=mapping_space,
File "/home/alex/repos/psydac/psydac/api/ast/fem.py", line 334, in __init__
fields_degrees = get_degrees(fields, spaces)
File "/home/alex/repos/psydac/psydac/api/ast/fem.py", line 226, in get_degrees
assert len(funcs) == len(degrees)
AssertionError
Maybe I have misunderstood, how this is supposed to be discretized. In the examples there is only one space used, but we need two spaces for the two fields. It might be good to have an option as for the BilinearForm where the variables are specified and then the spaces, as in
ac = BilinearForm((u, v), integral(domain, gc * u * v))
ach = discretize(ac, domain_h, [Vh, Vh], **kwargs)
(taken from test_assemble_complex_parallel in psydac/api/tests/test_assembly.py)
The text was updated successfully, but these errors were encountered:
When computing the L2-norm of an expression, I am not sure how the discretization should work in this case.
Minimal code example:
which results in the following traceback:
Maybe I have misunderstood, how this is supposed to be discretized. In the examples there is only one space used, but we need two spaces for the two fields. It might be good to have an option as for the
BilinearForm
where the variables are specified and then the spaces, as in(taken from
test_assemble_complex_parallel
inpsydac/api/tests/test_assembly.py
)The text was updated successfully, but these errors were encountered: