Skip to content
Snippets Groups Projects
Commit 60b50a65 authored by Christian Engwer's avatar Christian Engwer
Browse files

Don't use DIM and DIM_OF_WORLD

[[Imported from SVN: r2996]]
parent 709d7813
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
Instantiate Alberta-Grid and feed it to the generic femcheck()
Note: Albert needs the defines DIM and DIM_OF_WORLD on the
Note: Albert needs the defines DUNE_PROBLEM_DIM and DUNE_WORLD_DUNE_PROBLEM_DIM on the
commandline anyway thus we can use them to select the correct class
*/
......@@ -22,15 +22,18 @@ int main () {
try {
/* use grid-file appropriate for dimensions */
std::ostringstream filename;
filename << "alberta-testgrid-" << DIM << "-" << DIM_OF_WORLD << ".al";
filename << "alberta-testgrid-" << DUNE_PROBLEM_DIM
<< "-" << DUNE_WORLD_DUNE_PROBLEM_DIM << ".al";
std::cout << std::endl << "AlbertaGrid<" << DIM << "," << DIM_OF_WORLD
std::cout << std::endl << "AlbertaGrid<" << DUNE_PROBLEM_DIM
<< "," << DUNE_WORLD_DUNE_PROBLEM_DIM
<< "> with grid file: " << filename.str()
<< std::endl << std::endl;
// extra-environment to check destruction
{
Dune::AlbertaGrid<DIM,DIM_OF_WORLD> grid(filename.str().c_str());
Dune::AlbertaGrid<DUNE_PROBLEM_DIM,DUNE_WORLD_DUNE_PROBLEM_DIM>
grid(filename.str().c_str());
for(int i=0; i<3; i++)
{
grid.globalRefine(1);
......
......@@ -22,16 +22,19 @@ int main () {
try {
/* use grid-file appropriate for dimensions */
std::ostringstream filename;
filename << "alberta-testgrid-" << DIM << "-" << DIM_OF_WORLD << ".al";
filename << "alberta-testgrid-" << DUNE_PROBLEM_DIM
<< "-" << DUNE_WORLD_DIM << ".al";
std::cout << std::endl << "AlbertaGrid<" << DIM << "," << DIM_OF_WORLD
std::cout << std::endl << "AlbertaGrid<" << DUNE_PROBLEM_DIM
<< "," << DUNE_WORLD_DIM
<< "> with grid file: " << filename.str()
<< std::endl << std::endl;
// extra-environment to check destruction
{
factorEpsilon = 500.0;
Dune::AlbertaGrid<DIM,DIM_OF_WORLD> grid(filename.str().c_str());
Dune::AlbertaGrid<DUNE_PROBLEM_DIM,DUNE_WORLD_DIM>
grid(filename.str().c_str());
for(int i=0; i<3; i++)
{
grid.globalRefine(1);
......
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