# run-time checking of parameters and internal states is performed, so
# you should set this value to `on' while you develop your program,
# and to `off' when running production computations.
-debug-mode = off
+debug-mode = on
# As third field, we need to give the path to the top-level deal.II
ExcIndexRange (component, 0, this->n_components));
if (component == 0)
- if (p[1] < 0)
- return (p[0] < -0.5 ? -1 : (p[0] > -0.5 ? 1 : 0));
- else
- return (p[0] < 0.5 ? -1 : (p[0] > 0.5 ? 1 : 0));
+ return (p[0] < 0 ? -1 : (p[0] > 0 ? 1 : 0));
return 0;
}
<< ".vtk";
std::ofstream output (filename.str().c_str());
- data_out.write_gmv (output);
+ data_out.write_vtk (output);
}
{
std::vector<unsigned int> subdivisions (dim, 1);
subdivisions[0] = 4;
- subdivisions[1] = 4;
const Point<dim> bottom_left = (dim == 2 ?
Point<dim>(-2,-1) :
- Point<dim>(-2,-2,-1));
+ Point<dim>(-2,0,-1));
const Point<dim> top_right = (dim == 2 ?
Point<dim>(2,0) :
- Point<dim>(2,2,0));
+ Point<dim>(2,1,0));
GridGenerator::subdivided_hyper_rectangle (triangulation,
subdivisions,
# run-time checking of parameters and internal states is performed, so
# you should set this value to `on' while you develop your program,
# and to `off' when running production computations.
-debug-mode = off
+debug-mode = on
# As third field, we need to give the path to the top-level deal.II
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams