[dune-fem] Errors with petsc in example-solvers, dune-fem-howto

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Thu Jul 17 12:35:44 CEST 2014


HI Tobias,

thanks!
I'm installing right now an old release of petsc, 3.3-p7, to see if the howto works correctly.
I'll let you know :)

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

________________________________________
From: Tobias Malkmus [tomalk at mathematik.uni-freiburg.de]
Sent: 17 July 2014 11:32
To: Andreas Dedner; dune-fem at dune-project.org; Sacconi, Andrea
Subject: Re: [dune-fem] Errors with petsc in example-solvers, dune-fem-howto

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Andrea/Andreas

I'm looking into it.
As far as i can see it at the moment, some funktion signitures have
change from 3.4 to 3.5.

I will fix it in the master branch and give a patch for the releese

Best Tobias


On 07/16/2014 06:12 PM, Andreas Dedner wrote:
> Hi Andrea. I tested main in dune-fem-howto-1.4/.example-solver/src
> With petsc 3.3-p6 its compiling fine. Would be nice if you could
> figure out what the compatibility problem is between the newer
> Petsc version and dune-fem. Andreas
>
>
> On 16/07/14 17:09, Sacconi, Andrea wrote:
>> Hi all,
>>
>> I just installed petsc 3.5.0, and I was curious to see how to use
>> it with dune-fem-1.4.0. So I tried to play with one of the
>> examples in the howto, but unfortunately I got this compilation
>> error:
>>
>> In file included from main.cc:43:0:
>> /usr/local_machine/dune-2.3.1/dune-fem-1.4.0/dune/fem/misc/petsc/petsccommon.hh:
>> In function ?void Dune::Petsc::initialize(bool, int&, char**&,
>> const char*, const char*, bool)?:
>> /usr/local_machine/dune-2.3.1/dune-fem-1.4.0/dune/fem/misc/petsc/petsccommon.hh:143:51:
>> error: invalid conversion from ?Dune::Petsc::ErrorCode
>> (*)(MPI_Comm, int, const char*, const char*, const char*,
>> Dune::Petsc::ErrorCode, PetscErrorType, const char*, void*) {aka
>> int (*)(ompi_communicator_t*, int, const char*, const char*,
>> const char*, int, PetscErrorType, const char*, void*)}? to
>> ?PetscErrorCode (*)(MPI_Comm, int, const char*, const char*,
>> PetscErrorCode, PetscErrorType, const char*, void*) {aka int
>> (*)(ompi_communicator_t*, int, const char*, const char*, int,
>> PetscErrorType, const char*, void*)}? [-fpermissive]
>> ::PetscPushErrorHandler( &ErrorHandler, 0 ); ^ In file included
>> from /usr/local_machine/petsc-3.5.0/include/petscsys.h:1525:0,
>> from /usr/local_machine/petsc-3.5.0/include/petscbag.h:4, from
>> /usr/local_machine/petsc-3.5.0/include/petsc.h:5, from
>> /usr/local_machine/dune-2.3.1/dune-fem-1.4.0/dune/fem/misc/petsc/petsccommon.hh:62,
>>
>>
from main.cc:43:
>> /usr/local_machine/petsc-3.5.0/include/petscerror.h:352:29:
>> error:   initializing argument 1 of ?PetscErrorCode
>> PetscPushErrorHandler(PetscErrorCode (*)(MPI_Comm, int, const
>> char*, const char*, PetscErrorCode, PetscErrorType, const char*,
>> void*), void*)? [-fpermissive] PETSC_EXTERN PetscErrorCode
>> PetscPushErrorHandler(PetscErrorCode
>> (*handler)(MPI_Comm,int,const char*,const
>> char*,PetscErrorCode,PetscErrorType,const char*,void*),void*); ^
>> In file included from main.cc:43:0:
>> /usr/local_machine/dune-2.3.1/dune-fem-1.4.0/dune/fem/misc/petsc/petsccommon.hh:
>> In function ?void Dune::Petsc::KSPSetOperators(KSP, Mat, Mat,
>> MatStructure)?:
>> /usr/local_machine/dune-2.3.1/dune-fem-1.4.0/dune/fem/misc/petsc/petsccommon.hh:215:138:
>> error: too many arguments to function ?PetscErrorCode
>> KSPSetOperators(KSP, Mat, Mat)? inline void KSPSetOperators (KSP
>> ksp, Mat Amat, Mat Pmat, MatStructure flag ) { ErrorCheck(
>> ::KSPSetOperators( ksp, Amat, Pmat, flag ) ); }
>>
>> Is the howto currently working? If someone of you does manage to
>> use it, which version of petsc do you use? Could it be a problem
>> of compatibility?
>>
>> Thanks in advance! 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
>>
>> _______________________________________________ dune-fem mailing
>> list dune-fem at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune-fem
>
>
>
>
> _______________________________________________ dune-fem mailing
> list dune-fem at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-fem
>

- --
Tobias Malkmus                 <tomalk at mathematik.uni-freiburg.de>

Mathematisches Institut               Tel: +49 761 203 5627
Abt. für Angewandte Mathematik        Universität Freiburg
Hermann-Herder-Str. 10
79104 Freiburg

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTx6ZYAAoJEBMY7DHvcWNge7EIAMGCGVS1BoYMFER/U3sjpSKi
T9xPSZymhtBV1toXv8ii4sqOYjPNR5mMzN+/117h4ObCaChFtiEbvDf3yQQSOFAU
uL6X1ODUsrzTdyYmdhd9woLw0dhywuiLDjjAyx9MJAXP+HlVH0YXRflFzRIaYEeg
n4QSAkwhmU56Dh0W+aNDRrHfoctZYpjDRgIYBknySUPjt3/UiccnysbPKup8162H
utxL41lFuB5vxrZ3/q20+U9BMuSIIJNczKWryUGnPcLypEf0PUiye761jbnwzOcZ
hzDpLgFX1h5qXamCKotz7OmX4PefyrV/myZMioDeTWHWhIUdK7dV3AcZdvtDfoE=
=kPDE
-----END PGP SIGNATURE-----




More information about the dune-fem mailing list