Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equation with RHS identicaly equal to 0 #116

Open
ratnania opened this issue Jul 30, 2022 · 0 comments
Open

Equation with RHS identicaly equal to 0 #116

ratnania opened this issue Jul 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ratnania
Copy link
Contributor

When calling

equation = find(u, forall=v, lhs=a(u, v), rhs=l(v), bc=bc)

with l a LinearForm associated to a load equal to 0 (meaning f=0) we get the following error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-25-b67ad67ac997> in <module>
----> 1 test_poisson_2d_dir0_13_diri_24(PSYDAC_BACKEND_GPYCCEL)

<ipython-input-24-8c463e5b3c89> in test_poisson_2d_dir0_13_diri_24(backend)
      7     dir_nonzero_boundary = get_boundaries(2, 4)
      8 
----> 9     run_poisson_2d(solution, f, dir_zero_boundary,
     10             dir_nonzero_boundary, ncells=[2**2, 2**2], degree=[2, 2], backend=backend)

<ipython-input-17-54db547b3b16> in run_poisson_2d(solution, f, dir_zero_boundary, dir_nonzero_boundary, ncells, degree, backend, comm)
     38 
     39     # Variational model
---> 40     equation = find(u, forall=v, lhs=a(u, v), rhs=l(v), bc=bc)
     41 
     42     # Error norms

TypeError: 'Zero' object is not callable

@ratnania ratnania added the bug Something isn't working label Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant