*/
template <int dim>
Vector<double>
- compute_aspect_ratio_of_cells(const Triangulation<dim> &triangulation,
- const Mapping<dim> & mapping,
+ compute_aspect_ratio_of_cells(const Mapping<dim> & mapping,
+ const Triangulation<dim> &triangulation,
const Quadrature<dim> & quadrature);
/**
*/
template <int dim>
double
- compute_maximum_aspect_ratio(const Triangulation<dim> &triangulation,
- const Mapping<dim> & mapping,
+ compute_maximum_aspect_ratio(const Mapping<dim> & mapping,
+ const Triangulation<dim> &triangulation,
const Quadrature<dim> & quadrature);
/**
template <int dim>
Vector<double>
- compute_aspect_ratio_of_cells(const Triangulation<dim> &triangulation,
- const Mapping<dim> & mapping,
+ compute_aspect_ratio_of_cells(const Mapping<dim> & mapping,
+ const Triangulation<dim> &triangulation,
const Quadrature<dim> & quadrature)
{
FE_Nothing<dim> fe;
template <int dim>
double
- compute_maximum_aspect_ratio(const Triangulation<dim> &triangulation,
- const Mapping<dim> & mapping,
+ compute_maximum_aspect_ratio(const Mapping<dim> & mapping,
+ const Triangulation<dim> &triangulation,
const Quadrature<dim> & quadrature)
{
Vector<double> aspect_ratio_vector =
- compute_aspect_ratio_of_cells(triangulation, mapping, quadrature);
+ compute_aspect_ratio_of_cells(mapping, triangulation, quadrature);
return VectorTools::compute_global_error(triangulation,
aspect_ratio_vector,
const std::vector<BoundingBox<deal_II_space_dimension>> &, MPI_Comm);
template Vector<double> GridTools::compute_aspect_ratio_of_cells(
- const Triangulation<deal_II_space_dimension> &,
const Mapping<deal_II_space_dimension> &,
+ const Triangulation<deal_II_space_dimension> &,
const Quadrature<deal_II_space_dimension> &);
template double GridTools::compute_maximum_aspect_ratio(
- const Triangulation<deal_II_space_dimension> &,
const Mapping<deal_II_space_dimension> &,
+ const Triangulation<deal_II_space_dimension> &,
const Quadrature<deal_II_space_dimension> &);
}
QGauss<3> const gauss(4);
double const ar_full_torus =
- GridTools::compute_maximum_aspect_ratio(tria, mapping, gauss);
+ GridTools::compute_maximum_aspect_ratio(mapping, tria, gauss);
double const ar_open_torus =
- GridTools::compute_maximum_aspect_ratio(tria_open, mapping, gauss);
+ GridTools::compute_maximum_aspect_ratio(mapping, tria_open, gauss);
deallog << "N_active_cells_full = " << tria.n_global_active_cells()
<< std::endl;
QGauss<dim> const gauss(n_q_points);
Vector<double> ratios =
- GridTools::compute_aspect_ratio_of_cells(tria, mapping, gauss);
+ GridTools::compute_aspect_ratio_of_cells(mapping, tria, gauss);
deallog << std::endl
<< "Parameters:"
deallog << "Aspect ratio vector = " << std::endl;
ratios.print(deallog.get_file_stream());
- return GridTools::compute_maximum_aspect_ratio(tria, mapping, gauss);
+ return GridTools::compute_maximum_aspect_ratio(mapping, tria, gauss);
}
int