[petsc-dev] sor smoothers

Jed Brown jedbrown at mcs.anl.gov
Mon Sep 9 20:57:45 CDT 2013


Barry Smith <bsmith at mcs.anl.gov> writes:
>    Take a look at MatCreate_SeqAIJ. These fill up all the function
>    points in one swoop with the big function table, this is why there
>    is not "base class setup".

Those MatOps_Values are a perpetual maintenance hassle.  I would replace
them all with a boring list of assignment statements for any implemented
functions, as in MatCreate_Nest.  Then we wouldn't need any "dummy"
entries, the order wouldn't matter, etc.

If Microsoft would implement C99, we could use designated initializers:

static struct _MatOps MatOps_Values = {
  .setvalues = MatSetValues_SeqAIJ,
  .mult      = MatMult_SeqAIJ,
  .....
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130909/613165d2/attachment.sig>


More information about the petsc-dev mailing list