Skip to content

Commit

Permalink
list to scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmyhill committed Nov 7, 2023
1 parent daabccb commit e6de5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion burnman/utils/geotherm.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def adiabatic(pressures, T0, rock):
rock.set_state(pressures[0], T0)
S0 = rock.S

delta_S = lambda T, P, rock, S0: S0 - rock.evaluate(["S"], [P], [T])[0]
delta_S = lambda T, P, rock, S0: S0 - rock.evaluate(["S"], [P], [T])[0][0]

temperatures = np.empty_like(pressures)
temperatures[0] = T0
Expand Down

0 comments on commit e6de5df

Please sign in to comment.