On Oct 10, 2006, at 4:09 PM, hzhatlboro wrote:
Hi, can you please give me an idea what does the following error
mean? Thanks for your support!
Traceback (most recent call last):
File "pf2dtest.py", line 206, in ?
S20+=s[k]*((.5*epsilon[counti,k]**2-.5*epsilon[j,k]**2)*(phases
[k].getFaceGrad()).getDivergence \
TypeError: unsupported operand type(s) for *: 'float' and
'instancemethod'
The complete codes at lines 206 & 207 are:-
S20+=s[k]*((.5*epsilon[counti,k]**2-.5*epsilon[j,k]**2)*(phases
[k].getFaceGrad()).getDivergence \
+(omega[counti,k]-omega[j,k])*phases
[k])
What you've written here is incomplete.
Python is seeing
S20+=someCellVariable*(someNumber*someFaceVariable.getDivergence +
somethingElse)
when it wants to see
S20+=someCellVariable*(someNumber*someFaceVariable.getDivergence() +
somethingElse)