On Thu, Apr 9, 2015 at 6:19 PM, Adrian Croucher <[email protected]>
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: [email protected]
> 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

Reply via email to