[aspect-devel] cannot allocate an object of abstract type ‘aspect::MaterialModel::Simpler<3>’
rene.gassmoeller at mailbox.org
Tue Feb 14 16:27:50 PST 2017
my first reaction when encountering compile errors after updating is
always to remove the content of the build folder and build from scratch,
does this resolve the issue for you?
That being said there were some changes in the material model interface
recently (removal of deprecated functions) so it might be an actual bug,
but so far we did not see behavior like this. In general an error
message like you posted might occur if an object of a derived class that
does not implement all purely virtual functions of the base class is
Let me know if rebuilding from scratch does not help.
On 02/14/2017 01:34 PM, Lev Karatun wrote:
> Hi all,
> I was updating Aspect to the recent version (with plugins on top of
> it) but I'm getting the following error when trying to compile it:
> error: cannot allocate an object of abstract type
> return new ModelClass();
> I was wondering if I missed some change in how the material model
> plugins need to be registered? (the plugins were compiling and working
> just fine with the older versions of Aspect) Or is there some other
> reason for the error? I'm not really sure where to look because the
> compiler is pointing at plugins.h which I never modified, and I don't
> know where the problematic function call is coming from.
> If someone could help me find out what I need to change in my
> implementation to get rid of the error, or how to find the cause of
> the problem, I'd really appreciate it.
> Best regards,
> Lev Karatun.
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Aspect-devel