[aspect-devel] cannot allocate an object of abstract type ‘aspect::MaterialModel::Simpler<3>’

Rene Gassmoeller rene.gassmoeller at mailbox.org
Wed Feb 15 10:19:56 PST 2017


Hi Lev,

I am pretty sure something must have went wrong during your update. In 
the development version the 'reference_density' function is not longer 
in 'interface.h:657' as your error message suggests (it was removed last 
week). Could you check with 'git status' if your update was successful? 
Maybe there was a conflict during the update and git got stuck at some 
version in between your previous version and the current master branch. 
Git should list the files that have a conflict, and also mark the 
conflicting lines. You can either resolve this in an editor or use a 
merge-tool for git. If you can not immediately find the problem, try 
checking out a fresh clone of the master branch in a new directory. If 
that one does work you will need to find a way to fix your other 
directory. One option is to look for the conflicting file with 'git 
status' and resolve the conflict. Another one is to use 'git merge 
--abort' to go back to the state before you updated (of course at some 
point you will need to resolve the conflict).

Best,

Rene


On 02/15/2017 06:48 AM, Lev Karatun wrote:
> I already posted it - 10 minutes before replying to Rene. Here it is 
> again:
>
>         In file included from
>         /home/lev/aspect/aspect_new_release/include/aspect/material_model/interface.h:25:0,
>
>                          from
>         /home/lev/aspect/aspect_new_release/include/aspect/material_model/simpler.h:24,
>
>                          from
>         /home/lev/aspect/aspect_new_release/source/material_model/simpler.cc:22:
>
>         /home/lev/aspect/aspect_new_release/include/aspect/plugins.h:
>         In instantiation of ‘static InterfaceClass*
>         aspect::internal::Plugins::RegisterHelper<InterfaceClass,
>         ModelClass>::factory() [with InterfaceClass =
>         aspect::MaterialModel::Interface<2>; ModelClass =
>         aspect::MaterialModel::Simpler<2>]’:
>
>         /home/lev/aspect/aspect_new_release/include/aspect/plugins.h:76:30:
>           required from
>         ‘aspect::internal::Plugins::RegisterHelper<InterfaceClass,
>         ModelClass>::RegisterHelper(void (*)(const string&, const
>         string&, void (*)(dealii::ParameterHandler&), InterfaceClass*
>         (*)()), const char*, const char*) [with InterfaceClass =
>         aspect::MaterialModel::Interface<2>; ModelClass =
>         aspect::MaterialModel::Simpler<2>; std::string =
>         std::basic_string<char>]’
>
>         /home/lev/aspect/aspect_new_release/source/material_model/simpler.cc:141:5:
>           required from here
>
>         /home/lev/aspect/aspect_new_release/include/aspect/plugins.h:86:33:
>         error: cannot allocate an object of abstract type
>         ‘aspect::MaterialModel::Simpler<2>’
>
>                    return new ModelClass();
>
>                  ^
>
>         In file included from
>         /home/lev/aspect/aspect_new_release/source/material_model/simpler.cc:22:0:
>
>         /home/lev/aspect/aspect_new_release/include/aspect/material_model/simpler.h:43:11:
>         note:   because the following virtual functions are pure
>         within ‘aspect::MaterialModel::Simpler<2>’:
>
>              class Simpler : public Interface<dim>
>
>                    ^
>
>         In file included from
>         /home/lev/aspect/aspect_new_release/include/aspect/material_model/simpler.h:24:0,
>
>                          from
>         /home/lev/aspect/aspect_new_release/source/material_model/simpler.cc:22:
>
>         /home/lev/aspect/aspect_new_release/include/aspect/material_model/interface.h:657:24:
>         note:     double
>         aspect::MaterialModel::Interface<dim>::reference_density()
>         const [with int dim = 2]
>
>                  virtual double reference_density () const = 0;
>
>         ^
>
>
>
> Best regards,
> Lev Karatun.
>
> 2017-02-15 1:33 GMT-05:00 Wolfgang Bangerth <bangerth at tamu.edu 
> <mailto:bangerth at tamu.edu>>:
>
>     On 02/14/2017 10:20 PM, Lev Karatun wrote:
>
>
>         it does not unfortunately =(
>
>
>     So then let's come back to my original question: What is the
>     *complete* error message?
>
>     Best
>      W>
>
>
>     -- 
>     ------------------------------------------------------------------------
>     Wolfgang Bangerth          email: bangerth at colostate.edu
>     <mailto:bangerth at colostate.edu>
>                                www:
>     http://www.math.colostate.edu/~bangerth/
>     <http://www.math.colostate.edu/%7Ebangerth/>
>
>     _______________________________________________
>     Aspect-devel mailing list
>     Aspect-devel at geodynamics.org <mailto:Aspect-devel at geodynamics.org>
>     http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
>     <http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel>
>
>
>
>
> _______________________________________________
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20170215/c3b81a54/attachment-0001.html>


More information about the Aspect-devel mailing list