Closed tyagi-ankit closed 9 months ago
Under the heading "Defining the source term" it says : "As the source term is constant over the domain, we use dolfinx.Constant".
dolfinx.Constant
But the code below uses fem.Constant, as in
fem.Constant
from dolfinx import default_scalar_type f = fem.Constant(domain, default_scalar_type(-6))
Again, in the callout --- "Compilation speed-up" --- just below, dolfinx.Constant is used. Please clarify.
Should be updated to fem.Constant
Under the heading "Defining the source term" it says : "As the source term is constant over the domain, we use
dolfinx.Constant
".But the code below uses
fem.Constant
, as inAgain, in the callout --- "Compilation speed-up" --- just below,
dolfinx.Constant
is used. Please clarify.