On 08/04/2017 03:22 AM, Maxi Miller wrote:
Then I get the following error:
|
error:nomatching functionforcall to ‘interpolate_boundary_values(dealii::DoFHandler<2>&,int,Step52::BoundaryValues<6>,dealii::ConstraintMatrix&)’
VectorTools::interpolate_boundary_values(dof_handler,1,BoundaryValues<3*dim>(carrier_density),constraint_matrix);
|

Ah yes. That's because...

    
VectorTools::interpolate_boundary_values(dof_handler,1,BoundaryValues<3*dim>(),constraint_matrix);

...this makes no sense. Why would you want to create BoundaryValues as a function on a 3*dim dimensional space? You are confusing the number of vector components (the output object of the function) and the dimensionality of the space (the input object of the function) you are working in.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to