On 5/11/20 3:46 AM, Huzaifa Unjhawala wrote:
I had added the header file prior to the run. For more information, given
below is the snippet of the code :
void Step3::make_grid ()
{
GridGenerator::hyper_cube (triangulation, -1, 1);
triangulation.begin_active()->face(0)->set_boundary_id(1);
triangulation.refine_global (5);
std::cout << "Number of active cells: "
<< triangulation.n_active_cells()
<< std::endl;
}
I then use:
VectorTools::interpolate_boundary_values (dof_handler,
1,
ConstantFunction<2>(1.),
boundary_values);
as given in the documentation.
Huzaifa,
it *should* work. Can you post the entire code you're trying to compile, along
with the complete error message you get?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/fcf42f90-d593-0d2a-d700-b4a4d011603d%40colostate.edu.