[petsc-dev] why does PetscDSSetDiscretization take PetscObject?

Geoffrey Irving irving at naml.us
Tue Aug 12 18:31:00 CDT 2014


On Mon, Aug 11, 2014 at 5:19 PM, Matthew Knepley <knepley at gmail.com> wrote:
> On Mon, Aug 11, 2014 at 6:52 PM, Geoffrey Irving <irving at naml.us> wrote:
>>
>> Is there a reason why PetscDSSetDiscretization takes PetscObject
>> instead of PetscFE?  The whole FEM API changed since I last looked at
>> it, and having untyped routines makes it somewhat difficult to track
>> the changes.
>
>
> I did this to a) make it backwards compatible with what was there before and
> b) because I was reluctant to start creating a big type hierarchy. This way
> I can
> have it take PetscFE or PetscFV and maybe something else. Then I figure out
> where a type hierarchy makes sense, or a single type, or this just does not
> work
> at all.

Fair enough.  I'll continue using grep as a substitute for type signatures.

Geoffrey



More information about the petsc-dev mailing list