[petsc-dev] [PATCH] Custom use of complex when not configured for complex
Matthew Knepley
knepley at gmail.com
Mon Sep 10 13:07:00 CDT 2012
On Mon, Sep 10, 2012 at 11:19 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> I would like to use complex arithmetic in some code that does polynomial
> optimization in the complex plane (for adaptive smoothers), even when
> PetscScalar is real. I'd like to push something like the attached, but
> since this is potentially fragile, I'm posting here before pushing. Any
> objections to my pushing?
>
> This works with my C and C++ real builds as well as C and C++ complex. I
> also tried a real build that disabled PETSC_HAVE_C99_COMPLEX (because all
> my compilers support it), but of course that's not much of a check.
>
> One thing that I think we could support (because C99 and C++ complex is
> binary compatible) is choosing the complex implementation based on the
> current language rather than PETSC_CLANGUAGE.
>
This looks good to me, but I am confused. What does this diff have to do
with unstructured meshes?
Matt
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120910/e1a18457/attachment.html>
More information about the petsc-dev
mailing list