Skip to content
Snippets Groups Projects
Commit 07f081ea authored by Oliver Sander's avatar Oliver Sander
Browse files

bugfix: useExistingDefaultsFile has to be a static variable

[[Imported from SVN: r2012]]
parent 611d1700
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,9 @@ namespace Dune {
typedef UGGridHierarchicIndexSet<Dune::UGGrid<dim,dimworld> > HierarchicIndexSetType;
typedef DefaultLevelIndexSet<Dune::UGGrid<dim,dimworld> > LevelIndexSetType;
//! The type used to store coordinates
typedef double ctype;
/** \brief Constructor with control over UG's memory requirements
*
* \param heapSize The size of UG's internal memory in megabytes. UG allocates
......@@ -383,7 +386,7 @@ namespace Dune {
//! Marks whether the UG environment heap size is taken from
//! an existing defaults file or whether the values from
//! the UGGrid constructor are taken
bool useExistingDefaultsFile;
static bool useExistingDefaultsFile;
//! The type of grid refinement currently in use
RefinementType refinementType_;
......
......@@ -127,6 +127,10 @@ namespace Dune {
template<> int Dune::UGGrid < 2, 2 >::numOfUGGrids = 0;
template<> int Dune::UGGrid < 3, 3 >::numOfUGGrids = 0;
template<> bool Dune::UGGrid < 2, 2 >::useExistingDefaultsFile = false;
template<> bool Dune::UGGrid < 3, 3 >::useExistingDefaultsFile = false;
template < int dim, int dimworld >
inline Dune::UGGrid < dim, dimworld >::UGGrid() : multigrid_(NULL),
refinementType_(COPY),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment