freepooma-devel
[Top][All Lists]
Advanced

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

RE: [pooma-dev] Field semantics


From: James Crotinger
Subject: RE: [pooma-dev] Field semantics
Date: Tue, 30 Apr 2002 13:11:37 -0600

>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


reply via email to

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