Question #152076 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/152076

    Status: Solved => Open

Melanie Jahny is still having a problem:
I changed the constructor to

class InitialConditions(Expression):   
    def __init__(self):        
        random.seed(2 + MPI.process_number())

But when calling
u.interpolate(u_init) I get the following error message:

AttributeError: 'ListTensor' object has no attribute 'interpolate'

For this reason I thought I have to change the function or the function 
call. 
I changed it to 
u[0].interpolate(u_init) and defined only one value in the InitialCondition 
class,
but that doesn't work, too.

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to