ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #02670
Re: insert quad points in comment differently
Quoting Shawn Walker <walker@xxxxxxxxxxxxxxx>:
>
> On Wed, 24 Jun 2009, Anders Logg wrote:
>
> > On Wed, Jun 24, 2009 at 09:57:37AM +0200, Kristian Oelgaard wrote:
> >> Quoting Shawn Walker <walker@xxxxxxxxxxxxxxx>:
> >>
> >>> Hello, I have just one minor request. When putting the quad points in
> the
> >>> comment, would it be possible to break it apart into two lists (one for
> >>> the X and one for the Y)? that way I can just copy it into the code I am
> >>> testing. Otherwise, I have to copy multiple pieces separately, which can
> >>> be tedious if there are lots of points. This isn't really critical,
> >>> though it would be nice.
> >>
> >> Yes, that is possible, but I think it is more natural to just have a list
> of
> >> points.
> >> However, I added some code to
> >>
> >> ffc/compiler/codegeneration/quadraturegenerator.py around line 420
> >>
> >> which will do what you want. Just uncomment the lines.
> >>
> >> We could have a quick vote here on the list to which format we want (or we
> could
> >> simply include both formats in the generated code).
> >>
> >> I don't want to push any changes before we agree on something because I
> will
> >> have to update the references if I do.
> >>
> >> Kristian
> >
> > I also think the first option (x, y, z), (x, y, z) is more natural.
>
> Well, what I meant was have something like:
>
> x0, x1, x2, ...
> y0, y1, y2, ...
Yes, as I wrote above I've put some code in
ffc/compiler/codegeneration/quadraturegenerator.py around line 420
which does just that. It is not currently active so you need to uncomment the
lines.
The reason I did not make it active is that I would have to update the
references for the regression tests and I don't want to do that because I think
what we have now is more natural.
> Another way would be to put curly braces:
>
> { {x0, y0, z0}, {x1, y1, z1}, ... }
>
>
> That way I could use that define the array directly.
I could change the format to this if you prefer.
Kristian
> - Shawn
>
> > But if it doesn't take up much space, we could have both. I have no
> > strong opinion.
> >
> > --
> > Anders
> >
> _______________________________________________
> FFC-dev mailing list
> FFC-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/ffc-dev
>
References