Skip to content

Commit

Permalink
fix intel warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhei committed May 4, 2018
1 parent b1d2b13 commit 7e59ed3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/aspect/geometry_model/sphere.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ namespace aspect
class Sphere : public Interface<dim>, public SimulatorAccess<dim>
{
public:
/**
* Constructor.
*/
Sphere();

/**
* Generate a coarse mesh for the geometry described by this class.
*/
Expand Down
18 changes: 18 additions & 0 deletions source/geometry_model/sphere.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@ namespace aspect
{
namespace GeometryModel
{
/*
intel 18 incorrectly complains:
warning #411: class template "aspect::GeometryModel::Sphere<dim>" defines no constructor to initialize the following:
const member "aspect::GeometryModel::Sphere<dim>::spherical_manifold"
even though SphericalManifold's constructor has only one argument with a default.
*/
template <int dim>
Sphere<dim>::Sphere()
#if DEAL_II_VERSION_GTE(9,0,0)
:
spherical_manifold()
#endif
{}



template <int dim>
void
Sphere<dim>::
Expand Down

0 comments on commit 7e59ed3

Please sign in to comment.