On 9/19/22 07:18, Wasim Niyaz Munshi ce21d400 wrote:
Functions::ConstantFunction<dim>(dim)(u_y_values,2),constraints,u_y_mask
                                                     );//imposing u_y=0 on boudaries with id=1
Now, it gives the following error:
error: no match for call to ‘(dealii::Functions::ConstantFunction<2, double>) (double&, int)’
  Functions::ConstantFunction<dim>(dim)(u_x_values,dim),constraints,u_x_mask);
It gives the same error for u_y also.

This is because the syntax
  Functions::ConstantFunction<dim>(dim)(u_y_values,2)
makes no sense. You need the <dim>, but not (dim).

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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/8dad9397-503c-388d-1aba-19da2c1ddc5b%40colostate.edu.

Reply via email to