if (apply_dirichlet_bc == true)VectorTools::interpolate_boundary_values(dof_handler_ref,boundary_id,Functions::ZeroFunction<dim>(n_components),constraints,fe.component_mask(x_displacement));elseVectorTools::interpolate_boundary_values(dof_handler_ref,boundary_id,Functions::ZeroFunction<dim>(n_components),constraints,fe.component_mask(x_displacement));
--
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 a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/TSUwtKqcotY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear Jean-Paul,Thanks for your answer! Still, I am not sure if I understand the code. The main issue seems to be that both blocks in every if else path are the exactly the same. For instance,if (apply_dirichlet_bc == true)VectorTools::interpolate_boundary_values(dof_handler_ref,boundary_id,Functions::ZeroFunction<dim>(n_components),constraints,fe.component_mask(x_displacement));elseVectorTools::interpolate_boundary_values(dof_handler_ref,boundary_id,Functions::ZeroFunction<dim>(n_components),constraints,fe.component_mask(x_displacement));What is the use of having if-else in this situation?Also, in your answer you mentioned that in the second call (iteration == 1), only homogeneous constrains will be built. I also cannot see this from the code. Perhaps this part is interacting with some other part of the code in a way I cannot see?Thanks for the help,Lucas Campos
Hi Lucas,
Dear Jean-Paul,
Thanks again. Now I do understand and it all makes sense.Also, while yes, I agree that the lack of the else could lead to errors that quite hard to track down. However, I think adding your comment to that part of the tutorial could save someone having the same issues I faced.Thanks for your time,Lucas
Dear Jean-Paul,
I can definitely do it.
Lucas