You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pg.solver.solveFiniteElements(mesh, a=1.0, b=0...) does not work if b is set as a field (just like a)
because "if b!=0" does not work any more in python 3.7.3
Your environment
Operating system: e.g. Windows, Linux Python version: 3.7.3 pyGIMLi version: Output of print(pg.__version__) Way of installation: conda forge
Expected behavior
I should be able to set a parameter field
Actual behavior
File "", line 17, in
bc=bc, times=None, userData=None, verbose=True)# **kwargs
File "/home/veronika/miniconda3/lib/python3.7/site-packages/pygimli/solver/solver.py", line 1593, in solveFiniteElements
if b != 0:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
The text was updated successfully, but these errors were encountered:
gockolori
changed the title
pg.solver.solveFiniteElements(mesh, a=1.0, b=0...)
pg.solver.solveFiniteElements(mesh, a=1.0, b=0...) does not work if b is set as a field
May 20, 2019
gockolori
changed the title
pg.solver.solveFiniteElements(mesh, a=1.0, b=0...) does not work if b is set as a field
pg.solver.solveFiniteElements(mesh, a=1.0, b=0...) does not work if b is set as a field #bug
May 20, 2019
gockolori
changed the title
pg.solver.solveFiniteElements(mesh, a=1.0, b=0...) does not work if b is set as a field #bug
pg.solver.solveFiniteElements(mesh, a=1.0, b=0...) does not work if b is set as a field
May 20, 2019
Problem description
pg.solver.solveFiniteElements(mesh, a=1.0, b=0...) does not work if b is set as a field (just like a)
because "if b!=0" does not work any more in python 3.7.3
Your environment
Operating system: e.g. Windows, Linux
Python version: 3.7.3
pyGIMLi version: Output of
print(pg.__version__)
Way of installation: conda forge
Expected behavior
I should be able to set a parameter field
Actual behavior
The text was updated successfully, but these errors were encountered: