Inplace operations on Data object copies
Asked by
Lutz Gross
Why does the script
from esys.escript import *
from esys.finley import Rectangle
d=Rectangle()
x=Scalar(
y=x
x+=1.
print "x= ",x," y= ", y
return
x = 2 and y = 2
and not x=2 and y=1 ?
Posted on behalf of Louise Olson-Kettle
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Lutz Gross for more information if necessary.
To post a message you must log in.