Hi everyone,

I have one question when i using DoFHandler 
<https://dealii.org/developer/doxygen/deal.II/classDoFHandler.html><dim, 
spacedim>::cell_iterator DataPostprocessorInputs::CommonInputs 
<https://dealii.org/developer/doxygen/deal.II/structDataPostprocessorInputs_1_1CommonInputs.html><
 
spacedim >::get_cell() const. 
The code I write this:
template <int dim>
class BoundaryIds : public DataPostprocessorScalar 
<https://dealii.org/developer/doxygen/deal.II/classDataPostprocessorScalar.html>
<dim>
{
public:
BoundaryIds()
: DataPostprocessorScalar 
<https://dealii.org/developer/doxygen/deal.II/classDataPostprocessorScalar.html><dim>("boundary_id",
 
update_quadrature_points 
<https://dealii.org/developer/doxygen/deal.II/group__feaccess.html#ggaa94b67d2fdcc390690c523f28019e52fad5c9ff886b9615349a5d04a6c782df4a>
)
{}
virtual void
evaluate_scalar_field(
const DataPostprocessorInputs::Scalar<dim> 
<https://dealii.org/developer/doxygen/deal.II/structDataPostprocessorInputs_1_1Scalar.html>
 
&inputs,
std::vector<Vector<double> 
<https://dealii.org/developer/doxygen/deal.II/classVector.html>> 
&computed_quantities) const override
{
AssertDimension 
<https://dealii.org/developer/doxygen/deal.II/group__Exceptions.html#ga9442b63275c9ef3fab29bc222831c49c>
(computed_quantities.size(),
inputs.solution_values 
<https://dealii.org/developer/doxygen/deal.II/structDataPostprocessorInputs_1_1Scalar.html#a817da85350f3ccbd774d4010dc200145>
.size());
// Get the cell and face we are currently dealing with:
const typename DoFHandler<dim>::active_cell_iterator 
<https://dealii.org/developer/doxygen/deal.II/classDoFHandler.html> cell 
<https://dealii.org/developer/doxygen/deal.II/structDataPostprocessorInputs_1_1CommonInputs.html#a2e18ccd556d1c5369785d6501fc4e88c>
 
=
inputs.template get_cell<dim>();
const unsigned int face = inputs.get_face_number 
<https://dealii.org/developer/doxygen/deal.II/structDataPostprocessorInputs_1_1CommonInputs.html#a38502910f8536bdc61170d7acc4cb97b>
();
// Then fill the output fields with the boundary_id of the face
for (auto &output : computed_quantities)
{
AssertDimension 
<https://dealii.org/developer/doxygen/deal.II/group__Exceptions.html#ga9442b63275c9ef3fab29bc222831c49c>(output.size(),
 
1);
output(0) = cell->face(face)->boundary_id();
}
}
};
And my error is:
no maching function for call to " DataPostprocessorInputs::CommonInputs 
<https://dealii.org/developer/doxygen/deal.II/structDataPostprocessorInputs_1_1CommonInputs.html><
 
spacedim >::get_cell() "

Could someone can help me?
Thanks very much!
Best wishes,
zhang

-- 
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/452e70cf-6f7c-4b8e-be87-d72f4b0769b8n%40googlegroups.com.

Reply via email to