Hi I'm trying to reproduce my own grid in dealii 8.0 step-5 tutorial, please find attached grid. The code and error can be seen below.
Code
=====================================
template <int dim>
void Step5<dim>::run ()
{
std::string zzz = "square.unv"; // This is my own grid that I am trying to import.
GridIn<dim> grid_in;
grid_in.attach_triangulation (triangulation);
std::ifstream input_file(zzz);
Assert (dim==2, ExcInternalError());
grid_in.read_unv (input_file);
}
int main ()
{
deallog.depth_console (0);
Step5<2> laplace_problem_2d;
laplace_problem_2d.run ();
return 0;
}
Here is the error I am getting.
terminate called after throwing an instance of 'dealii::GridIn<2, 2>::ExcUnknownSectionType'
what():
--------------------------------------------------------
An error occurred in line <74> of file </home/kdomican/deal.II/source/grid/grid_in.cc> in function
void dealii::GridIn<dim, spacedim>::read_unv(std::istream&) [with int dim = 2; int spacedim = 2; std::istream = std::basic_istream<char>]
The violated condition was:
tmp == 2411
The name and call sequence of the exception was:
ExcUnknownSectionType(tmp)
Additional Information:
The section type <164> in an UNV input file is not implemented.
Stacktrace:
-----------
Thanks in advanced,