Claire,

this looks to be the problem:

/home/claire/Logiciels/deal.II/deal.II-v8.4.1/include/deal.II/base/work_stream.h:1230:3:
 note:   template argument deduction/substitution failed:
/home/claire/Logiciels/deal.II/deal.II-v8.4.1/Doctorat/slm_v18/slm_v18.cc:1031:17:
 note:   deduced conflicting types for parameter ‘const Iterator’ 
(‘dealii::TriaActiveIterator<dealii::DoFCellAccessor<dealii::hp::DoFHandler<3, 
3>, false> >’ and ‘dealii::hp::DoFHandler<3, 3>::cell_iterator {aka 
dealii::TriaIterator<dealii::DoFCellAccessor<dealii::hp::DoFHandler<3, 3>, 
false> >}’)
  WorkStream::run(dof_handler.begin_active()


can you try something like:
typename hp::DoFHandler<dim>::active_cell_iterator cell = 
dof_handler.begin_active(), end_cell = dof_handler.end();
WorkStream::run(cell, end_cell, ...)

This should help your compiler deducing the templated parameters.

Best,

Bruno
<http://dealii.org/developer/doxygen/deal.II/group__Iterators.html#gafe703004a41973a6808c81d42ad7e7b1>


On Tuesday, July 26, 2016 at 10:54:46 AM UTC-4, Claire wrote:
>
> Dear all,
>
> First of all I would like to thank all the deal.II developers and the 
> community who helped created it and keep it alive. 
> The more I get into it the more I am impress by its high quality and 
> completeness.
>
> The issue that I am currently facing is that I am trying to implement 
> multithreading using the WorkStream functionalities.
> I use for that the Step 9 tutorial. 
> I have very similar Copy and Scratch data structures and use the suggested 
> path " assemble_local(ScratchData, CopyData) -> 
> copy_local_to_global(CopyData) -> assemble_system() "
> The major difference between my program and the Step 9 one is that I use a 
> hp::DoFHandler instead of a DoFHandler.
>
> When compiling I get some errors that I was unable to understand well and 
> fix so far.
> They come from the WorkStream::run method.
> Please find attached its implementation and the errors that I get. 
> It seems that the problem comes from the iterator, the compiler has 
> trouble determining which type to use.
>
> I am using the latest released version of the library (v8.4.1)
>
> I hope that I provide enough information. I case anyone needs more 
> details, please feel free to ask.
>
> Thank you very much by advance for all the help or suggestions that I may 
> receive.
>
> Best,
>
> Claire
>

-- 
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