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

Error printf replaced by Exception

[[Imported from SVN: r1061]]
parent 60b160b0
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ namespace Dune {
* \brief Provides file reading facilities in the AmiraMesh format.
*
*/
template<class GRID>
template<class GridType>
class AmiraMeshReader {
public:
......@@ -22,7 +22,7 @@ namespace Dune {
* @param grid The grid objects that is to be written
* @param filename The filename
*/
static void read(GRID& grid,
static void read(GridType& grid,
const std::string& filename);
......@@ -33,11 +33,12 @@ namespace Dune {
}
// Default implementation
template<class GRID>
void Dune::AmiraMeshReader<GRID>::read(GRID& grid,
const std::string& filename)
template<class GridType>
void Dune::AmiraMeshReader<GridType>::read(GridType& grid,
const std::string& filename)
{
printf("No AmiraMesh reading has been implemented for this grid type!\n");
/** \todo We should somehow output the grid type name here */
DUNE_THROW(IOError, "No AmiraMesh reading has been implemented for this grid type!");
}
......
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