Skip to content

Commit

Permalink
Merge pull request #687 from evalf/fixes
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
gertjanvanzwieten committed Jun 1, 2022
2 parents b0d6512 + dfea5b6 commit 21a75c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cahnhilliard.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#
# with the equivalent weak formulation::
#
# ∂/∂η ∫_Ω [ η (φ - φ0) + .5 dt J(η)·∇η ] = 0
# ∂/∂η ∫_Ω [ .5 dt J(η)·∇η - η (φ - φ0) ] = 0
# ∂/∂φ ∫_Ω [ E(φ) + δψ(φ, φ0) σ / ε - η φ ] = 0
#
# For stability we wish for the perturbation δψ to be such that the time
Expand Down
2 changes: 1 addition & 1 deletion nutils/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def _determine_dtype(targets, residuals, lhs0, constrain):
or any(vec.dtype.kind == 'c' for vec in constrain.values())
) else float
if not all(argobjs[target].dtype == dtype for target in targets):
raise ValueError('All targets must have dtype {}.'.format(dtype.__name___))
raise ValueError('All targets must have dtype {}.'.format(dtype.__name__))
return dtype

# vim:sw=2:sts=2:et

0 comments on commit 21a75c2

Please sign in to comment.