[dune-fem] Problems in preconditionerwrapper.hh

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Fri Mar 2 16:59:34 CET 2012


Hi everyone,

I've just started a new project, modifying the tutorial about the Stokes problem contained in the package Dune-Fem-Howto.

I don't know why, but it seems to be a problem in one of the inclusion: (probably all the errors come from the first line)

/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:86: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:86: error: invalid use of ‘::’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:86: error: expected ‘;’ before ‘<’ token
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:90: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:90: error: invalid use of ‘::’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:90: error: expected ‘;’ before ‘<’ token
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh: In copy constructor ‘Dune::PreconditionerWrapper<MatrixImp>::PreconditionerWrapper(const Dune::PreconditionerWrapper<MatrixImp>&)’:
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:137: error: class ‘Dune::PreconditionerWrapper<MatrixImp>’ does not have any field named ‘op_’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:138: error: class ‘Dune::PreconditionerWrapper<MatrixImp>’ does not have any field named ‘preconder_’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh: In constructor ‘Dune::PreconditionerWrapper<MatrixImp>::PreconditionerWrapper()’:
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:145: error: class ‘Dune::PreconditionerWrapper<MatrixImp>’ does not have any field named ‘op_’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:146: error: class ‘Dune::PreconditionerWrapper<MatrixImp>’ does not have any field named ‘preconder_’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh: In constructor ‘Dune::PreconditionerWrapper<MatrixImp>::PreconditionerWrapper(MatrixImp&, int, typename MatrixImp::RowBlockVectorType::field_type, const PreconditionerType*)’:
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:156: error: class ‘Dune::PreconditionerWrapper<MatrixImp>’ does not have any field named ‘op_’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:157: error: class ‘Dune::PreconditionerWrapper<MatrixImp>’ does not have any field named ‘preconder_’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh: In constructor ‘Dune::PreconditionerWrapper<MatrixImp>::PreconditionerWrapper(MatrixImp&, int, typename MatrixImp::RowBlockVectorType::field_type, const PreconditionerType*, const typename MatrixImp::CollectiveCommunictionType&)’:
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:172: error: class ‘Dune::PreconditionerWrapper<MatrixImp>’ does not have any field named ‘op_’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:174: error: class ‘Dune::PreconditionerWrapper<MatrixImp>’ does not have any field named ‘preconder_’
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh: In member function ‘virtual void Dune::PreconditionerWrapper<MatrixImp>::pre(typename MatrixImp::RowBlockVectorType&, typename MatrixImp::ColBlockVectorType&)’:
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:187: error: ‘preconder_’ was not declared in this scope
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh: In member function ‘virtual void Dune::PreconditionerWrapper<MatrixImp>::apply(typename MatrixImp::RowBlockVectorType&, const typename MatrixImp::ColBlockVectorType&)’:
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:198: error: ‘preconder_’ was not declared in this scope
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh: In member function ‘virtual void Dune::PreconditionerWrapper<MatrixImp>::post(typename MatrixImp::RowBlockVectorType&)’:
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:213: error: ‘preconder_’ was not declared in this scope
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh: In member function ‘Dune::Preconditioner<typename MatrixImp::RowBlockVectorType, typename MatrixImp::ColBlockVectorType>* Dune::PreconditionerWrapper<MatrixImp>::createAMGPreconditioner(const typename MatrixImp::CollectiveCommunictionType&, int, typename MatrixImp::RowBlockVectorType::field_type, const Smoother*)’:
/users/andreasacconi/Università/PhD_ICL/Dune_download/dune-fem-1.2.1/dune/fem/operator/matrix/preconditionerwrapper.hh:254: error: ‘op_’ was not declared in this scope

Does anybody have the same problem?
I've simply copied and pasted demo codes. I don't know if I have to define additional variables to make it work.

Cheers,

Andrea
__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-fem/attachments/20120302/d0bab931/attachment.htm>


More information about the dune-fem mailing list