Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler compatibility #1588

Merged
merged 1 commit into from May 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/aspect/geometry_model/interface.h
Expand Up @@ -25,6 +25,7 @@
#include <aspect/plugins.h>
#include <deal.II/base/parameter_handler.h>
#include <deal.II/distributed/tria.h>
#include <deal.II/base/std_cxx11/array.h>

#include <set>

Expand Down Expand Up @@ -137,15 +138,15 @@ namespace aspect
* latitude) in 3d.
*/
virtual
std::array<double,dim> cartesian_to_natural_coodinates(const Point<dim> &position) const;
std_cxx11::array<double,dim> cartesian_to_natural_coodinates(const Point<dim> &position) const;

/**
* Undoes the action of cartesian_to_natural_coodinates, and turns the
* coordinate system which is most 'natural' to the geometry model into
* Cartesian coordinates.
*/
virtual
Point<dim> natural_to_cartesian_coodinates(const std::array<double,dim> &position) const;
Point<dim> natural_to_cartesian_coodinates(const std_cxx11::array<double,dim> &position) const;

/**
* Returns a representative point for a given depth. Such a point must
Expand Down
6 changes: 3 additions & 3 deletions source/geometry_model/interface.cc
Expand Up @@ -65,18 +65,18 @@ namespace aspect
}

template <int dim>
std::array<double,dim>
std_cxx11::array<double,dim>
Interface<dim>::cartesian_to_natural_coodinates(const Point<dim> &) const
{
Assert (false,
ExcMessage ("The cartesian_to_natural_coodinates function has "
"not been implemented in this geometry model."));
return std::array<double,dim>();
return std_cxx11::array<double,dim>();
}

template <int dim>
Point<dim>
Interface<dim>::natural_to_cartesian_coodinates(const std::array<double,dim> &) const
Interface<dim>::natural_to_cartesian_coodinates(const std_cxx11::array<double,dim> &) const
{
Assert (false,
ExcMessage ("The natural_to_cartesian_coodinates function has "
Expand Down
2 changes: 1 addition & 1 deletion source/postprocess/stokes_residual.cc
Expand Up @@ -105,7 +105,7 @@ namespace aspect
#endif

// If there were expensive iterations add them after a signalling -1.
if ((solver_control_cheap.last_check() == SolverControl::State::failure)
if ((solver_control_cheap.last_check() == dealii::SolverControl::failure)
&& (solver_control_cheap.last_step() == solver_control_cheap.max_steps()))
{
data_point.values.push_back(-1.0);
Expand Down
2 changes: 1 addition & 1 deletion source/utilities.cc
Expand Up @@ -1996,7 +1996,7 @@ namespace aspect
const double sum_of_weights = std::accumulate(weights.begin(), weights.end(), 0);
Assert (sum_of_weights != 0,
ExcMessage ("The sum of the weights may not be equal to zero, because we need to divide through it."));
return std::cbrt(averaged_parameter/sum_of_weights);
return cbrt(averaged_parameter/sum_of_weights);
}
else if (p >= 1000)
{
Expand Down