The problem went away after I reinstalled all DuMux and dune-uggrid.

Best regards,

Dmitry


On 30.03.2020 23:48, Dmitry Pavlov wrote:
Hello,

My program's build broke all of a sudden. The error message, which I can not conceive, is below. My program does a 2p problem with CCFV with UGGrid<2>.

I know that sounds stupid, but I did not do anything. I never saw this error message before. The build has been OK for quite a while, but then I re-created the cmake-build folder to build with cmake -DCMAKE_BUILD_TYPE=Debug, and instantly got the error. The debug option probably is not the culprit because now it does not build either way.

I installed some other software recently and it might cause an update of some system-wide gcc packages or something. That is all I know. I will appreciate any pointers.

Best regards,

Dmitry



/usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>; _Args = {const Dune::CollectiveCommunication<Dune::UGGrid<2> >&, Dune::SolverCategory::Category&}; _Tp = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>]’: /usr/include/c++/7/bits/alloc_traits.h:475:4:   required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>; _Args = {const Dune::CollectiveCommunication<Dune::UGGrid<2> >&, Dune::SolverCategory::Category&}; _Tp = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int> >]’ /usr/include/c++/7/bits/shared_ptr_base.h:526:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {const Dune::CollectiveCommunication<Dune::UGGrid<2> >&, Dune::SolverCategory::Category&}; _Tp = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>; _Alloc = std::allocator<Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int> >; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr_base.h:637:4: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>; _Alloc = std::allocator<Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int> >; _Args = {const Dune::CollectiveCommunication<Dune::UGGrid<2> >&, Dune::SolverCategory::Category&}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr_base.h:1295:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int> >; _Args = {const Dune::CollectiveCommunication<Dune::UGGrid<2> >&, Dune::SolverCategory::Category&}; _Tp = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’ /usr/include/c++/7/bits/shared_ptr.h:344:64:   required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int> >; _Args = {const Dune::CollectiveCommunication<Dune::UGGrid<2> >&, Dune::SolverCategory::Category&}; _Tp = Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>]’ /usr/include/c++/7/bits/shared_ptr.h:690:14:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] /home/dpavlov/DUMUX/dumux/dumux/nonlinear/newtonsolver.hh:1086:19: required from ‘std::enable_if_t<(! Dumux::isMultiTypeBlockVector<V>()), bool> Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::solveLinearSystemImpl_(LinearSolver&, Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::JacobianMatrix&, Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector&, Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector&) [with V = Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >; Assembler = Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0>; LinearSolver = Dumux::ParallelAMGBackend<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::AmgTraitsImpl<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, std::allocator<Dune::FieldMatrix<double, 2, 2> > >, Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >, Dumux::CCTpfaFVGridGeometry<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, false, Dumux::CCTpfaDefaultGridGeometryTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::DefaultMapperTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout>, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout> > > >, (Dumux::DiscretizationMethod)2> >; Reassembler = Dumux::PartialReassembler<Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0> >; Comm = Dune::CollectiveCommunication<ompi_communicator_t*>; std::enable_if_t<(! Dumux::isMultiTypeBlockVector<V>()), bool> = bool; Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::JacobianMatrix = Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, std::allocator<Dune::FieldMatrix<double, 2, 2> > >; Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector = Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >]’ /home/dpavlov/DUMUX/dumux/dumux/nonlinear/newtonsolver.hh:1050:38: required from ‘bool Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::solveLinearSystem_(Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector&) [with Assembler = Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0>; LinearSolver = Dumux::ParallelAMGBackend<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::AmgTraitsImpl<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, std::allocator<Dune::FieldMatrix<double, 2, 2> > >, Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >, Dumux::CCTpfaFVGridGeometry<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, false, Dumux::CCTpfaDefaultGridGeometryTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::DefaultMapperTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout>, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout> > > >, (Dumux::DiscretizationMethod)2> >; Reassembler = Dumux::PartialReassembler<Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0> >; Comm = Dune::CollectiveCommunication<ompi_communicator_t*>; Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector = Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >]’ /home/dpavlov/DUMUX/dumux/dumux/nonlinear/newtonsolver.hh:376:48: required from ‘void Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::solveLinearSystem(Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector&) [with Assembler = Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0>; LinearSolver = Dumux::ParallelAMGBackend<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::AmgTraitsImpl<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, std::allocator<Dune::FieldMatrix<double, 2, 2> > >, Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >, Dumux::CCTpfaFVGridGeometry<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, false, Dumux::CCTpfaDefaultGridGeometryTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::DefaultMapperTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout>, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout> > > >, (Dumux::DiscretizationMethod)2> >; Reassembler = Dumux::PartialReassembler<Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0> >; Comm = Dune::CollectiveCommunication<ompi_communicator_t*>; Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector = Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >]’ /home/dpavlov/DUMUX/dumux/dumux/nonlinear/newtonsolver.hh:882:34: required from ‘bool Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::solve_(Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector&) [with Assembler = Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0>; LinearSolver = Dumux::ParallelAMGBackend<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::AmgTraitsImpl<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, std::allocator<Dune::FieldMatrix<double, 2, 2> > >, Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >, Dumux::CCTpfaFVGridGeometry<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, false, Dumux::CCTpfaDefaultGridGeometryTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::DefaultMapperTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout>, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout> > > >, (Dumux::DiscretizationMethod)2> >; Reassembler = Dumux::PartialReassembler<Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0> >; Comm = Dune::CollectiveCommunication<ompi_communicator_t*>; Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector = Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >]’ /home/dpavlov/DUMUX/dumux/dumux/nonlinear/newtonsolver.hh:228:42: required from ‘void Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::solve(Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector&, Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::TimeLoop&) [with Assembler = Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0>; LinearSolver = Dumux::ParallelAMGBackend<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::AmgTraitsImpl<Dune::BCRSMatrix<Dune::FieldMatrix<double, 2, 2>, std::allocator<Dune::FieldMatrix<double, 2, 2> > >, Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >, Dumux::CCTpfaFVGridGeometry<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, false, Dumux::CCTpfaDefaultGridGeometryTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dumux::DefaultMapperTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout>, Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<2> > >, Dune::Impl::MCMGFailLayout> > > >, (Dumux::DiscretizationMethod)2> >; Reassembler = Dumux::PartialReassembler<Dumux::FVAssembler<Dumux::Properties::TTag::TwoPNCDiffusionCC, (Dumux::DiffMethod)0> >; Comm = Dune::CollectiveCommunication<ompi_communicator_t*>; Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::SolutionVector = Dune::BlockVector<Dune::FieldVector<double, 2>, std::allocator<Dune::FieldVector<double, 2> > >; Dumux::NewtonSolver<Assembler, LinearSolver, Reassembler, Comm>::TimeLoop = Dumux::TimeLoopBase<double>; typename Assembler::Scalar = double]’
/home/dpavlov/DUMUX/porous-twod/app/main.cc:158:43: required from here
/usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to ‘Dune::OwnerOverlapCopyCommunication<Dune::bigunsignedint<96>, int>::OwnerOverlapCopyCommunication(const Dune::CollectiveCommunication<Dune::UGGrid<2> >&, Dune::SolverCategory::Category&)’
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/dpavlov/DUMUX/dune-istl/dune/istl/paamg/construction.hh:9:0,                  from /home/dpavlov/DUMUX/dune-istl/dune/istl/paamg/smoother.hh:6,                  from /home/dpavlov/DUMUX/dune-istl/dune/istl/paamg/amg.hh:8,                  from /home/dpavlov/DUMUX/dumux/dumux/linear/amgbackend.hh:34,                  from /home/dpavlov/DUMUX/dumux/dumux/linear/seqsolverbackend.hh:42,                  from /home/dpavlov/DUMUX/dumux/dumux/linear/linearsolveracceptsmultitypematrix.hh:27,                  from /home/dpavlov/DUMUX/dumux/dumux/nonlinear/newtonsolver.hh:48,
                 from /home/dpavlov/DUMUX/porous-twod/app/main.cc:8:
/home/dpavlov/DUMUX/dune-istl/dune/istl/owneroverlapcopy.hh:676:5: note: candidate: Dune::OwnerOverlapCopyCommunication<T1, T2>::OwnerOverlapCopyCommunication(const Dune::OwnerOverlapCopyCommunication<T1, T2>&) [with GlobalIdType = Dune::bigunsignedint<96>; LocalIdType = int]
     OwnerOverlapCopyCommunication (const OwnerOverlapCopyCommunication&)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/dpavlov/DUMUX/dune-istl/dune/istl/owneroverlapcopy.hh:676:5: note:   candidate expects 1 argument, 2 provided /home/dpavlov/DUMUX/dune-istl/dune/istl/owneroverlapcopy.hh:587:5: note: candidate: Dune::OwnerOverlapCopyCommunication<T1, T2>::OwnerOverlapCopyCommunication(const Dune::IndexInfoFromGrid<GlobalIdType, LocalIdType>&, MPI_Comm, Dune::SolverCategory::Category, bool) [with GlobalIdType = Dune::bigunsignedint<96>; LocalIdType = int; MPI_Comm = ompi_communicator_t*]      OwnerOverlapCopyCommunication (const IndexInfoFromGrid<GlobalIdType, LocalIdType>& indexinfo,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/dpavlov/DUMUX/dune-istl/dune/istl/owneroverlapcopy.hh:587:5: note:   no known conversion for argument 1 from ‘const Dune::CollectiveCommunication<Dune::UGGrid<2> >’ to ‘const Dune::IndexInfoFromGrid<Dune::bigunsignedint<96>, int>&’ /home/dpavlov/DUMUX/dune-istl/dune/istl/owneroverlapcopy.hh:573:5: note: candidate: Dune::OwnerOverlapCopyCommunication<T1, T2>::OwnerOverlapCopyCommunication(Dune::SolverCategory::Category) [with GlobalIdType = Dune::bigunsignedint<96>; LocalIdType = int]      OwnerOverlapCopyCommunication (SolverCategory::Category cat_ = SolverCategory::overlapping)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/dpavlov/DUMUX/dune-istl/dune/istl/owneroverlapcopy.hh:573:5: note:   candidate expects 1 argument, 2 provided /home/dpavlov/DUMUX/dune-istl/dune/istl/owneroverlapcopy.hh:555:5: note: candidate: Dune::OwnerOverlapCopyCommunication<T1, T2>::OwnerOverlapCopyCommunication(MPI_Comm, Dune::SolverCategory::Category, bool) [with GlobalIdType = Dune::bigunsignedint<96>; LocalIdType = int; MPI_Comm = ompi_communicator_t*]
     OwnerOverlapCopyCommunication (MPI_Comm comm_,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/dpavlov/DUMUX/dune-istl/dune/istl/owneroverlapcopy.hh:555:5: note:   no known conversion for argument 1 from ‘const Dune::CollectiveCommunication<Dune::UGGrid<2> >’ to ‘MPI_Comm {aka ompi_communicator_t*}’

_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to