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

Shubhangi Gupta sgupta at geomar.de
Thu Jun 11 12:03:34 CEST 2020


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20200611/e05b1cc0/attachment.htm>
-------------- next part --------------
-- 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!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: include_dune.hh
Type: text/x-c++hdr
Size: 2626 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20200611/e05b1cc0/attachment.hh>


More information about the dune-pdelab mailing list