[dune-pdelab] reg: build error in newton.hh

René Heß rene.hk-edv at gmx.de
Thu Jun 11 13:19:25 CEST 2020


Hi,

I guess I forgot to include the right file

#include <dune/pdelab/constraints/common/constraints.hh>

Should be fixed with:

https://gitlab.dune-project.org/pdelab/dune-pdelab/-/merge_requests/508



Best regards,
René


Shubhangi Gupta <sgupta at geomar.de> writes:

> Hi,
>
> Today I installed the current master version of dune core and pdelab 
> modules. My projects fail to build with this version of dune. The errors 
> appear in newton, e.g.,
>
> /dune/dune-pdelab/dune/pdelab/solver/newton.hh: In member function 
> ‘virtual void Dune::PDELab::NewtonMethod<GridOperator_, 
> LinearSolver_>::prepareStep(Dune::PDELab::NewtonMethod<GridOperator_, 
> LinearSolver_>::Domain&)’:
> /dune/dune-pdelab/dune/pdelab/solver/newton.hh:101:25: error: 
> ‘set_shifted_dofs’ is not a member of ‘Dune::PDELab’
> Dune::PDELab::set_shifted_dofs(_gridOperator.localAssembler().trialConstraints(), 
> 0.0, dirichletValues);
>
> The full terminal output is attached. I have also attached the dune 
> headers files that I use in my project.
>
> Any help in fixing this is greatly appreciated!
>
> Thanks, and warm wishes, Shubhangi
>
> -- Build files have been written to: /home/sgupta/dune_2_8_tmp/Pockmark2P2C/release-build
> --- calling make for Pockmark2P2C ---
> build directory: release-build
> cmake --build . -- 
> Scanning dependencies of target case2
> [ 25%] Building CXX object src/CMakeFiles/case2.dir/case2.cc.o
> In file included from /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh:27:0,
>                  from /home/sgupta/dune_2_8_tmp/Pockmark2P2C/src/include_dune.hh:39,
>                  from /home/sgupta/dune_2_8_tmp/Pockmark2P2C/src/case2.cc:35:
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/solver/newton.hh: In member function ‘virtual void Dune::PDELab::NewtonMethod<GridOperator_, LinearSolver_>::prepareStep(Dune::PDELab::NewtonMethod<GridOperator_, LinearSolver_>::Domain&)’:
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/solver/newton.hh:101:25: error: ‘set_shifted_dofs’ is not a member of ‘Dune::PDELab’
>            Dune::PDELab::set_shifted_dofs(_gridOperator.localAssembler().trialConstraints(), 0.0, dirichletValues);
>                          ^~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/solver/newton.hh:103:25: error: ‘set_constrained_dofs’ is not a member of ‘Dune::PDELab’
>            Dune::PDELab::set_constrained_dofs(_gridOperator.localAssembler().trialConstraints(), 0.0, solution);
>                          ^~~~~~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/solver/newton.hh:105:25: error: ‘copy_constrained_dofs’ is not a member of ‘Dune::PDELab’
>            Dune::PDELab::copy_constrained_dofs(_gridOperator.localAssembler().trialConstraints(), dirichletValues, solution);
>                          ^~~~~~~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/solver/newton.hh: In member function ‘virtual void Dune::PDELab::NewtonMethod<GridOperator_, LinearSolver_>::updateDefect(Dune::PDELab::NewtonMethod<GridOperator_, LinearSolver_>::Domain&)’:
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/solver/newton.hh:299:23: error: ‘set_shifted_dofs’ is not a member of ‘Dune::PDELab’
>          Dune::PDELab::set_shifted_dofs(_gridOperator.localAssembler().trialConstraints(), 0.0, dirichletValues);
>                        ^~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/solver/newton.hh:301:23: error: ‘set_constrained_dofs’ is not a member of ‘Dune::PDELab’
>          Dune::PDELab::set_constrained_dofs(_gridOperator.localAssembler().trialConstraints(), 0.0, solution);
>                        ^~~~~~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/solver/newton.hh:303:23: error: ‘copy_constrained_dofs’ is not a member of ‘Dune::PDELab’
>          Dune::PDELab::copy_constrained_dofs(_gridOperator.localAssembler().trialConstraints(), dirichletValues, solution);
>                        ^~~~~~~~~~~~~~~~~~~~~
> In file included from /home/sgupta/dune_2_8_tmp/Pockmark2P2C/src/include_dune.hh:39:0,
>                  from /home/sgupta/dune_2_8_tmp/Pockmark2P2C/src/case2.cc:35:
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh: In member function ‘virtual void Dune::PDELab::NewtonSolver<GOS, S, TrlV, TstV>::defect(Dune::PDELab::NewtonSolver<GOS, S, TrlV, TstV>::TestVector&)’:
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh:197:25: error: ‘set_shifted_dofs’ is not a member of ‘Dune::PDELab’
>            Dune::PDELab::set_shifted_dofs(this->gridoperator_.localAssembler().trialConstraints(), 0.0, dirichletValues);
>                          ^~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh:199:25: error: ‘set_constrained_dofs’ is not a member of ‘Dune::PDELab’
>            Dune::PDELab::set_constrained_dofs(this->gridoperator_.localAssembler().trialConstraints(), 0.0, *this->u_);
>                          ^~~~~~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh:201:25: error: ‘copy_constrained_dofs’ is not a member of ‘Dune::PDELab’
>            Dune::PDELab::copy_constrained_dofs(this->gridoperator_.localAssembler().trialConstraints(), dirichletValues, *this->u_);
>                          ^~~~~~~~~~~~~~~~~~~~~
> In file included from /home/sgupta/dune_2_8_tmp/Pockmark2P2C/src/include_dune.hh:39:0,
>                  from /home/sgupta/dune_2_8_tmp/Pockmark2P2C/src/case2.cc:35:
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh: In member function ‘virtual void Dune::PDELab::NewtonPrepareStep<GOS, TrlV, TstV>::prepare_step(Dune::PDELab::NewtonPrepareStep<GOS, TrlV, TstV>::Matrix&, TstV&)’:
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh:561:29: error: ‘set_shifted_dofs’ is not a member of ‘Dune::PDELab’
>                Dune::PDELab::set_shifted_dofs(this->gridoperator_.localAssembler().trialConstraints(), 0.0, dirichletValues);
>                              ^~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh:563:29: error: ‘set_constrained_dofs’ is not a member of ‘Dune::PDELab’
>                Dune::PDELab::set_constrained_dofs(this->gridoperator_.localAssembler().trialConstraints(), 0.0, *this->u_);
>                              ^~~~~~~~~~~~~~~~~~~~
> /home/sgupta/dune_2_8_tmp/source/dune/dune-pdelab/dune/pdelab/newton/newton.hh:565:29: error: ‘copy_constrained_dofs’ is not a member of ‘Dune::PDELab’
>                Dune::PDELab::copy_constrained_dofs(this->gridoperator_.localAssembler().trialConstraints(), dirichletValues, *this->u_);
>                              ^~~~~~~~~~~~~~~~~~~~~
> src/CMakeFiles/case2.dir/build.make:82: recipe for target 'src/CMakeFiles/case2.dir/case2.cc.o' failed
> make[2]: *** [src/CMakeFiles/case2.dir/case2.cc.o] Error 1
> CMakeFiles/Makefile2:1251: recipe for target 'src/CMakeFiles/case2.dir/all' failed
> make[1]: *** [src/CMakeFiles/case2.dir/all] Error 2
> Makefile:182: recipe for target 'all' failed
> make: *** [all] Error 2
> --- Failed to build Pockmark2P2C ---
> Terminating dunecontrol due to previous errors!
>
> #ifndef INCLUDES_DUNE_HH_
> #define INCLUDES_DUNE_HH_
>
> #include<dune/common/parametertreeparser.hh>
> #include<dune/common/parallel/mpihelper.hh>
> #include<dune/common/parallel/mpiguard.hh>
> #include<dune/common/exceptions.hh>
> #include<dune/common/fvector.hh>
> #include<dune/common/timer.hh>
>
> #include<dune/grid/io/file/vtk/subsamplingvtkwriter.hh>
> #include<dune/grid/io/file/vtk/vtksequencewriter.hh>
> #include<dune/grid/io/file/gmshreader.hh>
> #include<dune/grid/yaspgrid.hh>
> #include<dune/grid/utility/structuredgridfactory.hh>
>
> #if HAVE_ALBERTA
> #include<dune/grid/albertagrid.hh>
> #include<dune/grid/albertagrid/dgfparser.hh>
> #endif
> #if HAVE_UG
> #include<dune/grid/uggrid.hh>
> #endif
> #if HAVE_ALUGRID
> #include<dune/grid/alugrid.hh>
> #include<dune/grid/io/file/dgfparser/dgfalu.hh>
> #include<dune/grid/io/file/dgfparser/dgfparser.hh>
> #endif
>
>
> #include<dune/istl/bvector.hh>
> #include<dune/istl/operators.hh>
> #include<dune/istl/solvers.hh>
> #include<dune/istl/preconditioners.hh>
> #include<dune/istl/io.hh>
> #include<dune/istl/superlu.hh>
>
>
> #include<dune/pdelab/newton/newton.hh>
> #include<dune/pdelab/common/function.hh>
> #include<dune/pdelab/common/vtkexport.hh>
> #include<dune/pdelab/common/geometrywrapper.hh>
> #include<dune/pdelab/common/quadraturerules.hh>
>
>
> #include<dune/pdelab/finiteelement/localbasiscache.hh>
> #include<dune/pdelab/finiteelementmap/p0fem.hh>
> #include<dune/pdelab/finiteelementmap/qkdg.hh>
>
> #include<dune/pdelab/constraints/conforming.hh>
> #include<dune/pdelab/constraints/noconstraints.hh>
> #include<dune/pdelab/constraints/p0.hh>
> #include<dune/pdelab/constraints/common/constraints.hh>
> #include<dune/pdelab/constraints/common/constraintsparameters.hh>
> #include<dune/pdelab/finiteelementmap/qkfem.hh>
>
> #include<dune/pdelab/gridfunctionspace/gridfunctionspace.hh>
> #include<dune/pdelab/gridfunctionspace/subspace.hh>
> #include<dune/pdelab/gridfunctionspace/gridfunctionspaceutilities.hh>
> #include<dune/pdelab/gridfunctionspace/genericdatahandle.hh>
> #include<dune/pdelab/gridfunctionspace/interpolate.hh>
> #include<dune/pdelab/gridfunctionspace/localvector.hh>
>
> #include<dune/pdelab/gridoperator/gridoperator.hh>
> #include<dune/pdelab/gridoperator/onestep.hh>
>
> #include<dune/pdelab/backend/istl.hh>
>
> #include<dune/pdelab/stationary/linearproblem.hh>
> #include<dune/pdelab/instationary/onestep.hh>		//for instationary
>
> #include<dune/pdelab/localoperator/defaultimp.hh>
> #include<dune/pdelab/localoperator/pattern.hh>
> #include<dune/pdelab/localoperator/flags.hh>
> #include<dune/pdelab/localoperator/idefault.hh>
>
> #include<dune/geometry/referenceelements.hh>
> #include<dune/geometry/quadraturerules.hh>
>
> #endif /* INCLUDES_DUNE_HH_ */
> _______________________________________________
> dune-pdelab mailing list
> dune-pdelab at lists.dune-project.org
> https://lists.dune-project.org/mailman/listinfo/dune-pdelab
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20200611/5260167a/attachment.sig>


More information about the dune-pdelab mailing list