[pooma-dev] Field semantics

James Crotinger jcrotinger at proximation.com
Tue Apr 30 19:11:37 UTC 2002


>Ah, ok - that makes sense. For a simple
>    rh(rh.totalDomain()) = T;
>I dont need to specify the domain of T? I assumed a conforming domain gets
>selected by the engine for the RHS...

Again, I'm not sure what the details are here, but this is probably wrong.
You probably want to either do

	rh = T;

or do

	Interval<1> I = rh.totalDomain();
	rh(I) = T(I);

The latter will assign to the external guards; the former will not.

Pooma can't easily guess what you want - yes, for the total domain there is
no ambiguity, but then Pooma would have to have some way to figure out that
the domain passed in was the total domain. For a subdomain, it could be
almost anything; e.g.

	rh(I) = T(I+1);
     

I don't know if the domain check was a "PAssert" or a "PInsist". It wasn't
in an inner loop, so I'd have thought it would be the latter (which do not
compile away in optimized code).

	Jim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20020430/60867fc6/attachment.html>


More information about the pooma-dev mailing list