Skip to content

Commit

Permalink
[samples] Fix math deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Jun 19, 2023
1 parent 20d9ccb commit 4c9fdd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/python/surface_chemistry/sofc.py
Expand Up @@ -55,7 +55,7 @@ def show_coverages(s):

def equil_OCV(gas1, gas2):
return (-ct.gas_constant * gas1.T *
math.log(gas1['O2'].X / gas2['O2'].X) / (4.0*ct.faraday))
math.log(gas1['O2'].X[0] / gas2['O2'].X[0]) / (4.0 * ct.faraday))


def NewtonSolver(f, xstart, C=0.0):
Expand Down

0 comments on commit 4c9fdd4

Please sign in to comment.