Hello, if you are using the PostProcessor subclass within output_results(),
then is not required to use FracturePhaseFieldProblem<2>::Postprocessor as
the class and the function are in the same main class
FracturePhaseFieldProblem.
I think this can be the problem.

Regards,
Athul

On Wed, Jan 31, 2024 at 7:16 AM Tiny Y <yuyi2...@163.com> wrote:

> Hi,
> I built a class called  FracturePhaseFieldProblem<dim>   , which contains
> a subclass called  class Postprocessor,
>
> template <int dim>
>
> class FracturePhaseFieldProblem
>
> {
>
>     public:
>
> …
>
>     private:
>
>   …
>
> void output_results () const;
>
> class Postprocessor;
>
> …
>
> };
>
> However when I want to declare a variable as the type
> FracturePhaseFieldProblem<2>::Postprocessor in function output_results (),I
> got the error:
>
> error: cannot declare variable ‘postprocessor’ to be of abstract type
> ‘FracturePhaseFieldProblem<2>::Postprocessor’
>
> Thank you very much.
>
> Best,
>
> Yu
>
>
> --
> 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/614d3444-46ca-4d32-9172-a7a5e3bf7a7bn%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/614d3444-46ca-4d32-9172-a7a5e3bf7a7bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CANDM7bCSOq8J_%2B7e27YX3E96CPsbFNEENXONXAoQPMsXL5bL6w%40mail.gmail.com.

Reply via email to