// TODO: replace this by non-global object
-static MappingQ1<deal_II_dimension> mapping_q1;
+static const MappingQ1<deal_II_dimension> mapping_q1;
template <int dim>
void
{2,10,6,11},
{8,7,11,3}};
- static StraightBoundary<3> straight_boundary;
+ static const StraightBoundary<3> straight_boundary;
// used if face quad at boundary or
// entirely in the interior of the
// domain
MappingQ<3>::fill_quad_support_points_simple (const Triangulation<3>::cell_iterator &cell,
std::vector<Point<3> > &a) const
{
- static StraightBoundary<3> straight_boundary;
+ static const StraightBoundary<3> straight_boundary;
const Boundary<3> *boundary = 0;
MappingQ1<dim>::get_cell_data(const typename Triangulation<dim>::cell_iterator cell,
const UpdateFlags update_flags) const
{
- static Point<dim> dummy_p;
- static Quadrature<dim> dummy_quadrature(dummy_p);
+ static const Point<dim> dummy_p;
+ static const Quadrature<dim> dummy_quadrature(dummy_p);
InternalData *mdata=dynamic_cast<InternalData *> (
get_data(update_flags, dummy_quadrature));
// cell in the present
// orientation is valid
check_topmost_cell:
-
- static unsigned int max_size = 0;
- if (rotation_states.size() > max_size)
- {
- max_size = rotation_states.size();
-// if (max_size % 10 == 0)
-// cout << "New max size " << rotation_states.size() << endl;
- };
const typename std::vector<Cell>::iterator
try_cell = cells.begin() + rotation_states.size()-1;
// list the 24 ways to rotate a
// cell, by the ways by which the
// vertices are then permuted
- static unsigned int rotations[24][GeometryInfo<3>::vertices_per_cell]
+ static const unsigned int rotations[24][GeometryInfo<3>::vertices_per_cell]
= { {0,1,2,3,4,5,6,7},
{1,5,6,2,0,4,7,3},
{5,4,7,6,1,0,3,2},
#endif
-
-static MappingQ1<deal_II_dimension> mapping;
+//TODO: purge this variable
+static const MappingQ1<deal_II_dimension> mapping;
template <int dim>
Assembler<dim>::AssemblerData::AssemblerData (const DoFHandler<dim> &dof,
#include <fe/mapping_q1.h>
//TODO: Do this more clever
-static MappingQ1<deal_II_dimension> mapping;
+static const MappingQ1<deal_II_dimension> mapping;
#ifdef DEAL_II_USE_MT
#include <base/thread_management.h>
#include <fe/mapping_q1.h>
//TODO: Do this more clever
-static MappingQ1<deal_II_dimension> mapping;
+static const MappingQ1<deal_II_dimension> mapping;
#ifdef DEAL_II_USE_MT
#include <base/thread_management.h>
#include <fe/fe_values.h>
//TODO: Do this more clever
-static MappingQ1<deal_II_dimension> mapping;
+static const MappingQ1<deal_II_dimension> mapping;
#ifdef DEAL_II_USE_MT
#include <base/thread_management.h>
//TODO: Comment?? Use proper mapping!
-static MappingQ1<deal_II_dimension> mapping;
+static const MappingQ1<deal_II_dimension> mapping;
template <int dim>
//TODO: Comment? Use proper mapping!
-static MappingQ1<deal_II_dimension> mapping;
+static const MappingQ1<deal_II_dimension> mapping;
template <typename T>
//TODO: Comment?? Proper Mapping
-static MappingQ1<deal_II_dimension> mapping;
+static const MappingQ1<deal_II_dimension> mapping;
//TODO: Comment?? Use proper mapping!
-static MappingQ1<deal_II_dimension> mapping;
+static const MappingQ1<deal_II_dimension> mapping;
//TODO: Comment?? Use proper mapping!
-static MappingQ1<deal_II_dimension> mapping;
+static const MappingQ1<deal_II_dimension> mapping;