Re: [deal.II] Adding dirichlet values to ConstraintMatrix

2016-06-23 Thread Wolfgang Bangerth
On 06/23/2016 02:46 AM, Praveen C wrote: void add_dirichlet_constraints (const std::map , ConstraintMatrix ) { for (const auto : values) { constraints.add_line (pair.first);

Re: [deal.II] Adding dirichlet values to ConstraintMatrix

2016-06-23 Thread Praveen C
Thanks Wolfgang. I will test this. Following function should work. best praveen void add_dirichlet_constraints (const std::map , ConstraintMatrix ) { for (const auto : values) {

[deal.II] Adding dirichlet values to ConstraintMatrix

2016-06-22 Thread Praveen C
Dear all I have created a std::map boundary_values; I want to add this to a ConstraintMatrix but I could not find any function to do this. >From the documentation, I could do for each dirichlet dof { add_line(...) set_inhomogeneity(...) } Is this the only way