freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ReRe: [Freepooma-devel] <pooma>/src/Particles/InterpolatorCIC.h


From: John H. Hall
Subject: Re: ReRe: [Freepooma-devel] <pooma>/src/Particles/InterpolatorCIC.h
Date: Thu, 31 Mar 2005 11:10:10 -0700

Roman:
Richard is right in that one should create a specialized object rather than loading up the code base with a bunch of conditionals. I don't have time to figure out what should be specialized in this case, but from a software engineering point of view that is the way to go. Maintenance over the entire software life cycle is the operative principal here and specialization (and therefore encapsulation of conditional cases is superior to explicit conditionals that end up popping up everywhere breaking encapsulation).
John Hall

On Mar 31, 2005, at 10:43 AM, Roman Krylov wrote:

Hi.

But if you only have one patch, you can as well use 1 internal guard, no? I only can imagine DomainLayout being special here, but would need to check that. I don't think specializing like above for layout global
size is a good idea from a SW engineering position.

No, pooma sets all guardLayers width to 0 when only 1 patch is used, even if one forces it to be 1 or higher !
That was the problem for my program using CIC where I used 1 patch.
Now with InterpolatorCIC.h I posted earlier it works.
Certainly, I could use more patches earlier as in examples/PIC2d, but I did not understand that time what was the problem,
now I know :)
But,,, does anyone need internal guardlayer at all with only 1 patch? I think no. Am I wrong? :)
Thanks.
Roman.


_______________________________________________
Freepooma-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freepooma-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]