YES. Would take me a while but I ll do it. 
Be prepared for many questions. 

On Monday, July 17, 2023 at 2:44:01 AM UTC+2 Wolfgang Bangerth wrote:

> On 7/16/23 07:22, Abbas Ballout wrote:
> > I get this error when I call the 
> exact_solution_vector_function.gradient(p1):
> > !ERROR Message:
> > /An error occurred in line <135> of file 
> > 
> </home/abbas/dealii-candi/deal-II/dealii/include/deal.II/base/function.templates.h>
>  
> in function
> >     dealii::Tensor<1, dim, Number> dealii::Function<dim, 
> > RangeNumberType>::gradient(const dealii::Point<dim>&, unsigned int) 
> const 
> > [with int dim = 2; RangeNumberType = double]
> > The violated condition was:
> >     false
> > Additional information:
> >     You (or a place in the library) are trying to call a function that is
> >     declared as a virtual function in a base class but that has not been
> >     overridden in your derived class./
> > /
> > /
> > Calling value  works fine but not gradient even though I have overridden 
> both 
> > functions.
>
> You do in your own class, but VectorFunctionFromTensorFunction does not. 
> That's not by design, but probably simply because nobody has ever had a 
> need 
> for this. Would you like to try and write a patch that adds 
> VectorFunctionFromTensorFunction::gradient()? You could model it on
> VectorFunctionFromTensorFunction::value().
>
> Best
> Wolfgang
>
> -- 
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: bang...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/c041d778-5abb-45c1-aa81-163e2a48d414n%40googlegroups.com.

Reply via email to