Hey Daniel,
Thanks for the reply!
I tried doing what you suggested. The code snippet:
    void * ptr = nullptr; //I tried with NULL and 0 synonyms as well
QGauss<dim>(fe.degree+1), mass_matrix, ptr , constraints);

The error:
step-26.cc:209:69: error: no matching function for call to 
‘create_mass_matrix(dealii::DoFHandler<2>&, dealii::QGauss<2>, 
dealii::SparseMatrix<double>&, void*&, dealii::ConstraintMatrix&)’
                                       mass_matrix, ptr , constraints);

On Thursday, 16 February 2017 14:23:21 UTC+5:30, Sumedh Yadav wrote:
> Hello,
> I want to use the *create_mass_matrix* and *create_laplace_matrix* 
> functionality of MatrixCreator namespace. The function prototype here 
> requires to pass a pointer (which is by default 0 meaning that there is no 
> variable coefficient associated with variable or laplace of variable) to a 
> function object. I want to build the mass/laplace matrices taking in 
> account the constraints so I pass the ConstraintMatrix argument as the last 
> argument of the function. Code snippet:
>     MatrixCreator::create_mass_matrix(dof_handler, 
> QGauss<dim>(fe.degree+1), mass_matrix, ________, constraints);
> Here dof_hadler, mass_matrix and constraints are appropriate objects as 
> the name suggests. I don't have the variable coefficient/s so I need to 
> know what to pass in the blank space which requires a pointer argument as 
> mentioned above?
> Thank you

The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to