cbc.solve not working properly

Asked by Kyle

From running run_test.py:

Traceback (most recent call last):
  File "channel_with_flap.py", line 125, in <module>
  File "/home/kyle/bin/cbc.solve/sandbox/fsi/fsiproblem.py", line 39, in solve
    self.init_meshes(mesh, parameters)
  File "/home/kyle/bin/cbc.solve/sandbox/fsi/fsiproblem.py", line 152, in init_meshes
    fsi_orientation[facet.index()] = c0
TypeError: in method 'MeshFunctionUInt___setitem__', argument 3 of type 'unsigned int'

Is their any way to fix the problem I am having? Is this potentially caused by syntax changes since the last cbc.solve release in 2009?

Question information

English Edit question
CBC.Solve Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Miklos Galamb (miklosgalamb) said :

Hi Kyle,

I don't know about this exact problem but I assume you are having problems in general to run most of the cbc.solve demos (as I did). The problem I had was mainly with cbc.twist and the problem that you posted with the fsi solver. Since the last revision (715) the demos work fine for me. What I had to do is get the development version of dolfin and the newest revision of cbc.solve.

I got the development version of dolfin with the dorsal tool. You have to add the option STABLE_BUILD=false in the dorsal.cfg file to get the newest version. Otherwise just follow the instructions in the terminal when running dorsal.

One more thing to watch out for! The setup.py file that comes with cbc.solve is missing an option to install cbc.swing so you have to add it to be able to run fsi simulations.

Just add "cbc.swing" to packages in setup.py:

packages = ["cbc",

Hope that works for you too,

Can you help with this problem?

Provide an answer of your own, or ask Kyle for more information if necessary.

To post a message you must log in.