Skip to content
Snippets Groups Projects
Commit 71fc4a3a authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

all from albert to alberta.

[[Imported from SVN: r1281]]
parent 2b7e5f50
Branches
Tags
No related merge requests found
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#include <config.h>
/*
Instantiate Alberta-Grid and feed it to the generic gridcheck()
Note: Albert needs the defines DIM and DIM_OF_WORLD on the
commandline anyway thus we can use them to select the correct class
*/
#include <iostream>
#include <sstream>
#include <dune/grid/albertagrid.hh>
#include "gridcheck.cc"
int main () {
try {
/* use grid-file appropriate for dimensions */
std::ostringstream filename;
filename << "alberta-testgrid-" << DIM << "-" << DIM_OF_WORLD << ".al";
std::cout << std::endl << "AlbertaGrid<" << DIM << "," << DIM_OF_WORLD
<< "> 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());
gridcheck(grid);
};
} catch (Dune::Exception &e) {
std::cerr << e << std::endl;
return 1;
} catch (...) {
std::cerr << "Generic exception!" << std::endl;
return 2;
}
return 0;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment