New question #158815 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/158815

While running channel_with_flap.py I am getting problems with variables not 
being set correctly, in this case as integers. Should I change the variables 
such as c0, c1, etc to int(c0) and int(c1).. or am I missing something?

  File "<ipython console>", line 1, in <module>
  File 
"/usr/lib/pymodules/python2.7/spyderlib/widgets/externalshell/startup.py", line 
122, in runfile
    execfile(filename, glbs)
  File "/home/kyle/bin/cbc.solve/sandbox/fsi/channel_with_flap.py", line 125, 
in <module>
    problem.solve(application_parameters)
  File "fsiproblem.py", line 39, in solve
    self.init_meshes(mesh, parameters)
  File "fsiproblem.py", line 152, in init_meshes
    fsi_orientation[facet.index()] = c0
TypeError: in method 'MeshFunctionUInt___setitem__', argument 3 of type 
'unsigned int'

> /home/kyle/bin/cbc.solve/sandbox/fsi/fsiproblem.py(152)init_meshes()
    151             # Just set c0, will be set only for FSI facets below

--> 152             fsi_orientation[facet.index()] = c0
    153 

-- 
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     : dolfin@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to