[aspect-devel] error: cannot declare field ‘aspect::GeometryModel::Chunk<2>::manifold’ to be of abstract type

Lev Karatun lev.karatun at gmail.com
Wed Apr 11 14:14:25 PDT 2018


Hi everyone,

I was trying to install aspect on a new cluster and got the error listed
below. I'm using the latest development version of both deal.II and Aspect,
did a clean install in both cases. Any tips on why this could be happening
will be appreciated!

Scanning dependencies of target aspect
[  0%] Building CXX object
CMakeFiles/aspect.dir/source/boundary_traction/initial_lithostatic_pressure.cc.o
In file included from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:32:0:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/chunk.h:
In instantiation of ‘class aspect::GeometryModel::Chunk<2>’:
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:98:129:
 required from ‘void
aspect::BoundaryTraction::InitialLithostaticPressure<dim>::initialize()
[with int dim = 2]’
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:329:5:
 required from here
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/chunk.h:303:23:
error: cannot declare field ‘aspect::GeometryModel::Chunk<2>::manifold’ to
be of abstract type ‘aspect::GeometryModel::Chunk<2>::ChunkGeometry’
         ChunkGeometry manifold;
                       ^
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/chunk.h:274:15:
note:   because the following virtual functions are pure within
‘aspect::GeometryModel::Chunk<2>::ChunkGeometry’:
         class ChunkGeometry : public ChartManifold<dim,dim>
               ^
In file included from
/home/r/russ/lkaratun/aspect/dealii_gcc/include/deal.II/grid/manifold_lib.h:21:0,
                 from
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/sphere.h:23,
                 from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:30:
/home/r/russ/lkaratun/aspect/dealii_gcc/include/deal.II/grid/manifold.h:358:52:
note:   std::unique_ptr<dealii::Manifold<dim, spacedim> >
dealii::Manifold<dim, spacedim>::clone() const [with int dim = 2; int
spacedim = 2]
   virtual std::unique_ptr<Manifold<dim,spacedim> > clone() const = 0;
                                                    ^
In file included from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:33:0:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:
In instantiation of ‘class
aspect::GeometryModel::EllipsoidalChunk<2>::EllipsoidalChunkGeometry’:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:312:36:
 required from ‘class aspect::GeometryModel::EllipsoidalChunk<2>’
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:101:151:
 required from ‘void
aspect::BoundaryTraction::InitialLithostaticPressure<dim>::initialize()
[with int dim = 2]’
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:329:5:
 required from here
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:285:9:
error: invalid abstract return type
‘aspect::GeometryModel::EllipsoidalChunk<2>::EllipsoidalChunkGeometry’
         get_manifold() const;
         ^
In file included from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:33:0:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:52:15:
note:   because the following virtual functions are pure within
‘aspect::GeometryModel::EllipsoidalChunk<2>::EllipsoidalChunkGeometry’:
         class EllipsoidalChunkGeometry : public ChartManifold<dim,3,3>
               ^
In file included from
/home/r/russ/lkaratun/aspect/dealii_gcc/include/deal.II/grid/manifold_lib.h:21:0,
                 from
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/sphere.h:23,
                 from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:30:
/home/r/russ/lkaratun/aspect/dealii_gcc/include/deal.II/grid/manifold.h:358:52:
note:   std::unique_ptr<dealii::Manifold<dim, spacedim> >
dealii::Manifold<dim, spacedim>::clone() const [with int dim = 2; int
spacedim = 3]
   virtual std::unique_ptr<Manifold<dim,spacedim> > clone() const = 0;
                                                    ^
In file included from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:33:0:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:
In instantiation of ‘class aspect::GeometryModel::EllipsoidalChunk<2 ’:
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:101:151:
 required from ‘void
aspect::BoundaryTraction::InitialLithostaticPressure<dim>::initialize()
[with int dim = 2]’
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:329:5:
 required from here
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:312:36:
error: cannot declare field
‘aspect::GeometryModel::EllipsoidalChunk<2>::manifold’ to be of abstract
type ‘aspect::GeometryModel::EllipsoidalChunk<2>::EllipsoidalChunkGeometry’
         EllipsoidalChunkGeometry   manifold;
                                    ^
In file included from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:32:0:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/chunk.h:
In instantiation of ‘class aspect::GeometryModel::Chunk<3>’:
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:98:129:
 required from ‘void
aspect::BoundaryTraction::InitialLithostaticPressure<dim>::initialize()
[with int dim = 3]’
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:329:5:
 required from here
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/chunk.h:303:23:
error: cannot declare field ‘aspect::GeometryModel::Chunk<3>::manifold’ to
be of abstract type ‘aspect::GeometryModel::Chunk<3>::ChunkGeometry’
         ChunkGeometry manifold;
                       ^
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/chunk.h:274:15:
note:   because the following virtual functions are pure within
‘aspect::GeometryModel::Chunk<3>::ChunkGeometry’:
         class ChunkGeometry : public ChartManifold<dim,dim>
               ^
In file included from
/home/r/russ/lkaratun/aspect/dealii_gcc/include/deal.II/grid/manifold_lib.h:21:0,
                 from
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/sphere.h:23,
                 from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:30:
/home/r/russ/lkaratun/aspect/dealii_gcc/include/deal.II/grid/manifold.h:358:52:
note:   std::unique_ptr<dealii::Manifold<dim, spacedim> >
dealii::Manifold<dim, spacedim>::clone() const [with int dim = 3; int
spacedim = 3]
   virtual std::unique_ptr<Manifold<dim,spacedim> > clone() const = 0;
                                                    ^
In file included from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:33:0:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:
In instantiation of ‘class
aspect::GeometryModel::EllipsoidalChunk<3>::EllipsoidalChunkGeometry’:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:312:36:
 required from ‘class aspect::GeometryModel::EllipsoidalChunk<3>’
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:101:151:
 required from ‘void
aspect::BoundaryTraction::InitialLithostaticPressure<dim>::initialize()
[with int dim = 3]’
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:329:5:
 required from here
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:285:9:
error: invalid abstract return type
‘aspect::GeometryModel::EllipsoidalChunk<3>::EllipsoidalChunkGeometry’
         get_manifold() const;
         ^
In file included from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:33:0:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:52:15:
note:   because the following virtual functions are pure within
‘aspect::GeometryModel::EllipsoidalChunk<3>::EllipsoidalChunkGeometry’:
         class EllipsoidalChunkGeometry : public ChartManifold<dim,3,3>
               ^
In file included from
/home/r/russ/lkaratun/aspect/dealii_gcc/include/deal.II/grid/manifold_lib.h:21:0,
                 from
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/sphere.h:23,
                 from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:30:
/home/r/russ/lkaratun/aspect/dealii_gcc/include/deal.II/grid/manifold.h:358:52:
note:   std::unique_ptr<dealii::Manifold<dim, spacedim> >
dealii::Manifold<dim, spacedim>::clone() const [with int dim = 3; int
spacedim = 3]
   virtual std::unique_ptr<Manifold<dim,spacedim> > clone() const = 0;
                                                    ^
In file included from
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:33:0:
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:
In instantiation of ‘class aspect::GeometryModel::EllipsoidalChunk<3 ’:
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:101:151:
 required from ‘void
aspect::BoundaryTraction::InitialLithostaticPressure<dim>::initialize()
[with int dim = 3]’
/home/r/russ/lkaratun/aspect/aspect/source/boundary_traction/initial_lithostatic_pressure.cc:329:5:
 required from here
/home/r/russ/lkaratun/aspect/aspect/include/aspect/geometry_model/ellipsoidal_chunk.h:312:36:
error: cannot declare field
‘aspect::GeometryModel::EllipsoidalChunk<3>::manifold’ to be of abstract
type ‘aspect::GeometryModel::EllipsoidalChunk<3>::EllipsoidalChunkGeometry’
         EllipsoidalChunkGeometry   manifold;
                                    ^
make[2]: *** [CMakeFiles/aspect.dir/build.make:639:
CMakeFiles/aspect.dir/source/boundary_traction/initial_lithostatic_pressure.cc.o]
Error 1
make[1]: *** [CMakeFiles/Makefile2:292: CMakeFiles/aspect.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Best regards,
Lev Karatun.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20180411/4a78c5ff/attachment.html>


More information about the Aspect-devel mailing list