[petsc-users] Multiple in-flight communications with PetscSFs
Barry Smith
bsmith at mcs.anl.gov
Sat Feb 7 11:04:11 CST 2015
Lawrence,
In general we do not want XXXSetFromOptions() to be randomly called deep within constructors or other places. Ideally we want them called either when I user calls them directly or from another YYYSetFromOptions() that the user called. We do violate this rule occasionally but we don't want new XXXSetFromOptions() put into the code randomly.
Barry
> On Feb 7, 2015, at 7:57 AM, Jed Brown <jed at jedbrown.org> wrote:
>
> Lawrence Mitchell <lawrence.mitchell at imperial.ac.uk> writes:
>>
>> + ierr = PetscSFSetFromOptions(v->sf); CHKERRQ(ierr);
>> + ierr = PetscSFSetFromOptions(v->defaultSF); CHKERRQ(ierr);
>
> Please use PetscObjectSetOptionsPrefix on the SFs and call
> PetscSFSetFromOptions in DMSetFromOptions.
>
>> v->defaultSection = NULL;
>> v->defaultGlobalSection = NULL;
>> v->defaultConstraintSection = NULL;
>
More information about the petsc-users
mailing list