[petsc-dev] More on FV overlap cells and Fortran

Matthew Knepley knepley at gmail.com
Fri Apr 10 15:54:56 CDT 2015


On Thu, Apr 9, 2015 at 6:19 PM, Adrian Croucher <a.croucher at auckland.ac.nz>
wrote:

>
>
>> Is it possible that you have not created the global section yet? I do not
>> use the normal interface here, which creates it
>> automatically, to speed things up. You can just call
>> DMPlexGetDefaultGlobalSection() before the call.
>>
>
> Thanks, it works if I add a call to DMGetDefaultGlobalSection() beforehand
> (couldn't find a 'DMPlexGetDefaultGlobalSection()').
>
> What is the 'normal interface' you're referring to here? Just wondering in
> case it would be easier for me to use that instead.
>

Sorry, obscure. What I meant was that internally I was using
dm->defaultGlobalSection rather than calling DMGetDefaultGlobalSection()
which would have created it. I have inserted checks for creation in the
debug version.

  Thanks,

    Matt


> Cheers, Adrian
>
> --
> Dr Adrian Croucher
> Senior Research Fellow
> Department of Engineering Science
> University of Auckland, New Zealand
> email: a.croucher at auckland.ac.nz
> tel: +64 (0)9 923 84611
>
>


-- 
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/20150410/003ce5ad/attachment.html>


More information about the petsc-dev mailing list