DoFTools::make_sparsity_pattern (saturation_dof_handler,
    darcy_dof_handler, dsp,
                                        saturation_constraints, false);
    ssemble_matrix_H.reinit(dsp);



    dealii is complaining and is saying

    
/home/franckm/apps/candi/deal.II-toolchain/deal.II-v8.4.0/include/deal.II/dofs/dof_tools.h:563:3:
    note: template<class DoFHandlerType, class SparsityPatternType> void
    dealii::DoFTools::make_sparsity_pattern(const DoFHandlerType&, const
    DoFHandlerType&, SparsityPatternType&)
       make_sparsity_pattern (const DoFHandlerType &dof_row,
       ^
    
/home/franckm/apps/candi/deal.II-toolchain/deal.II-v8.4.0/include/deal.II/dofs/dof_tools.h:563:3:
    note:   template argument deduction/substitution failed:
    /home/franckm/candi-examples/step-43b/step-43b.cc:918:68: note:
    candidate expects 3 arguments, 5 provided
                                           saturation_constraints, false);
                                                                        ^
    make[3]: *** [CMakeFiles/step-43b.dir/step-43b.cc.o] Error 1

The error is not surprising as there isn't a variant of
DoFTools::make_sparsity_pattern that takes two DoFHandlers.

There actually *is* a function that takes two DoFHandler objects, but it doesn't take a constraint matrix or the last boolean argument. (The reason is that if you consider different row and column spaces suggested by the two DoFHandlers, you would also have to consider different constraints on rows and columns; so, if that were implemented, there would need to be a function that takes *two* ConstraintMatrix objects; but that isn't implemented -- the function that is there assumes no constraints on either of the DoFs that form the row and column spaces, and leaves it to you to later eliminate the constraints you may have through other means.)

You can of course see what variants of the make_sparsity_pattern function there are by looking here:
  https://www.dealii.org/8.4.1/doxygen/deal.II/namespaceDoFTools.html

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to