I cannot remember why it is sizeof(PetscScalar) specifically. I do remember
that having an alignment is crucial to DMNetwork and it can fail and crash if
there is no alignment. So it is possible that the code will not work with the
Cray compilers.
The attribute is checked in
I've got this with Cray compiler
CC arch-daint-cray-opt/obj/dm/impls/network/network.o
CC-1160 craycc: WARNING File =
/scratch/snx3000/haplav/petsc/include/petsc/private/dmnetworkimpl.h, Line = 20
A reduction in alignment is ignored.
} PETSC_ATTRIBUTEALIGNED(sizeof(PetscScalar));
OK, it's not in Changes and there is one comment to it.
On Fri, Feb 1, 2019 at 10:50 AM Matthew Knepley wrote:
> I removed it, since no one should use it anymore. You use
> DMSetField()+DMCreateDS() instead.
>
> THanks,
>
> Matt
>
> On Fri, Feb 1, 2019 at 10:38 AM Mark Adams via petsc-dev
I removed it, since no one should use it anymore. You use
DMSetField()+DMCreateDS() instead.
THanks,
Matt
On Fri, Feb 1, 2019 at 10:38 AM Mark Adams via petsc-dev <
petsc-dev@mcs.anl.gov> wrote:
> 10:37 master= ~/Codes/petsc$ git grep DMSetDS
> src/dm/interface/dm.c:.seealso: DMGetDS(),
10:37 master= ~/Codes/petsc$ git grep DMSetDS
src/dm/interface/dm.c:.seealso: DMGetDS(), DMSetDS()
10:37 master= ~/Codes/petsc$