[dune-fem] dune-fem-howto UGGRID errors
Franco Pasquarelli
pasqui at dmf.unicatt.it
Fri Sep 4 15:34:17 CEST 2015
Hi all,
I attempt to use dune-fem and I begin to compile
le dune-fem-hoto programs, but I obtain this error:
.
.
.
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridleafiterator.hh:126:56: error: invalid conversion from âvoid*â to âDune::UG_NS<2>::Entity<1>::T* {aka UG::D2::edge*}â [-fpermissive]
this->virtualEntity_.setToTarget(UG_NS<dim>::succ(this->virtualEntity_.getTarget()), grid_);
^
In file included from /home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid.hh:90:0,
from ../../config.h:1025,
from main.cc:38:
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridentity.hh:51:10: note: initializing argument 1 of âvoid Dune::UGMakeableEntity<codim, dim, GridImp>::setToTarget(typename Dune::UG_NS<coorddim>::Entity<codim>::T*, const GridImp*) [with int codim = 1; int dim = 2; GridImp = const Dune::UGGrid<2>; typename Dune::UG_NS<coorddim>::Entity<codim>::T = UG::D2::edge]â
void setToTarget(typename UG_NS<dim>::template Entity<codim>::T* target, const GridImp* gridImp) {
^
In file included from /home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid.hh:96:0,
from ../../config.h:1025,
from main.cc:38:
.
.
.
and this error:
.
.
.
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridleafiterator.hh:116:20: error: no matching function for call to âDune::UGGridLeafIterator<1, (Dune::PartitionIteratorType)1u, const Dune::UGGrid<2> >::isLeaf(Dune::UG_NS<2>::Entity<1>::T*)â
return isLeaf(this->virtualEntity_.getTarget());
^
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridleafiterator.hh:74:10: note: candidate: bool Dune::UGGridLeafIterator<codim, pitype, GridImp>::isLeaf(const typename Dune::UG_NS<dim>::Element*) [with int codim = 1; Dune::PartitionIteratorType pitype = (Dune::PartitionIteratorType)1u; GridImp = const Dune::UGGrid<2>; typename Dune::UG_NS<dim>::Element = UG::D2::element]
bool isLeaf(const typename UG_NS<dim>::Element* theElement)
^
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridleafiterator.hh:74:10: note: no known conversion for argument 1 from âDune::UG_NS<2>::Entity<1>::T* {aka UG::D2::edge*}â to âconst Element* {aka const UG::D2::element*}â
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridleafiterator.hh:82:10: note: candidate: bool Dune::UGGridLeafIterator<codim, pitype, GridImp>::isLeaf(const typename Dune::UG_NS<dim>::Node*) [with int codim = 1; Dune::PartitionIteratorType pitype = (Dune::PartitionIteratorType)1u; GridImp = const Dune::UGGrid<2>; typename Dune::UG_NS<dim>::Node = UG::D2::node]
bool isLeaf(const typename UG_NS<dim>::Node* theNode)
^
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridleafiterator.hh:82:10: note: no known conversion for argument 1 from âDune::UG_NS<2>::Entity<1>::T* {aka UG::D2::edge*}â to âconst Node* {aka const UG::D2::node*}â
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridleafiterator.hh:114:10: note: candidate: bool Dune::UGGridLeafIterator<codim, pitype, GridImp>::isLeaf() [with int codim = 1; Dune::PartitionIteratorType pitype = (Dune::PartitionIteratorType)1u; GridImp = const Dune::UGGrid<2>]
bool isLeaf()
^
/home/export/pasqui/Dune/new-dune/dune-grid-2.3.1/dune/grid/uggrid/uggridleafiterator.hh:114:10: note: candidate expects 0 arguments, 1 provided
In file included from /home/export/pasqui/Dune/new-dune/dune-fem-1.4.0/dune/fem/gridpart/dunefemindexsets.hh:53:0,
from /home/export/pasqui/Dune/new-dune/dune-fem-1.4.0/dune/fem/gridpart/adaptiveleafindexset.hh:47,
from /home/export/pasqui/Dune/new-dune/dune-fem-1.4.0/dune/fem/gridpart/adaptiveleafgridpart.hh:45,
from main.cc:44
.
.
.
UGGRID is not supported? In particular I read in a old thread that the value "codim = 1" (see the
first error) is not correct, but I have not change the sources.
Best regards
Franco Pasquarelli
More information about the dune-fem
mailing list