Question on petsc-2.3.3-p13
Matthew Knepley
knepley at gmail.com
Thu Jun 12 07:12:07 CDT 2008
On Thu, Jun 12, 2008 at 6:07 AM, Tobias Neckel <neckel at in.tum.de> wrote:
> Hello,
>
> we recently switched from petsc-2.3.2-p10 to petsc-2.3.3-p13 (on a Linux 32
> bit architecture, with gcc 4.1.2). Installation and tests of petsc worked
> all well.
>
> Besides some new naming conventions, we encountered a strange compile error
> when using the new version 2.3.3 in our project:
>
> In the file petsc-2.3.3-p13/include/private/vecimpl.h, we get the following
> error in the lines 278 and 300:
> petsc-2.3.3-p13/include/private/vecimpl.h error: expected primary-expression
> before ',' token.
>
> We are not including vecimpl.h directly, but possibly indirectly by
> including kspimpl.h, pcimpl.h, and matimpl.h.
>
> When comparing this implementation to the old release, we learnt that the
> methods VecStashValue_Private() and VecStashValuesBlocked_Private(), which
> have been simple defines before, are now sth. like inline functions.
>
> We could eliminate the compile error by simply commenting the two
> corresponding calls of CHKERRQ(ierr) manually in vecimpl.h. So the ',' token
> seems to be one in the define of CHKERRQ.
>
> Is this a known problem? Are there any known solutions (besides this
> workaround)? Or are we misusing/omitting something?
I have not seen this problem before. I looked through the code. My only guess
is that the compiler is complaining about one of the __*__ variables in the
CHKERRQ() definition. I have not seen this before (they have always
been defined).
What compilers are you using?
Matt
> Thanks in advance
> Best regards
> Tobias Neckel
>
> --
> Dipl.-Tech. Math. Tobias Neckel
>
> Institut für Informatik V, TU München
> Boltzmannstr. 3, 85748 Garching
>
> Tel.: 089/289-18602
> Email: neckel at in.tum.de
> URL: http://www5.in.tum.de/persons/neckel.html
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener
More information about the petsc-users
mailing list