mikaem / Oasis

55 stars 48 forks source link

TypeError on solution initialisation #31

Closed jacktat closed 4 years ago

jacktat commented 4 years ago

Hey,

I changed my BC from a constant value to a time-dependent expression and now I get a TypeError:

File "/home/jack/anaconda2/envs/fenicsproject/lib/python3.7/site-packages/oasis-2018.1-py3.7.egg/oasis/problems/NSfracStep/PaSpec3D.py", line 195, in initialize [bc.apply(x_1[ui]) for bc in bcs[ui]] TypeError: tuple indices must be integers or slices, not str When I changed it back to a constant I still have the error , so I must have made a change somewhere that triggers this, however, I cannot seem to find what I changed that caused this. Has anyone else encounterd this problem ? Thanks for your help. Cheers, Jack