[petsc-dev] resurrecting the finite element energy functions thread

Jed Brown jed at jedbrown.org
Tue Jan 21 12:04:58 CST 2014


Geoffrey Irving <irving at naml.us> writes:

> On Sun, Jan 19, 2014 at 5:03 PM, Jed Brown <jed at jedbrown.org> wrote:
>> Geoffrey Irving <irving at naml.us> writes:
>>> It isn't, the only difference is that the function I'm imagining needs
>>> an extra quadrature rule argument.  Nothing here is complicated, so if
>>> there are no particular opinions I'll write the function and send a
>>> patch.  Can I write it hard coded to MPI_SUM first, and we can discuss
>>> how to generalize it after that?  I am less clear on how to best write
>>> the generalized version.
>>
>> That's fine with me.
>
> Should the result be an array of PetscScalar or PetscReal?  My
> application is for objectives, so PetscReal, but PetscScalar is more
> generic.

I would use PetscScalar.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140121/d3c4bff5/attachment.sig>


More information about the petsc-dev mailing list