Skip to content

Commit

Permalink
Update sym_utils.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
YichengDWu committed May 26, 2023
1 parent 08aa66b commit 682b406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pde/sym_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ function transform_expression(pinnrep::NamedTuple{names}, ex::Expr) where {names

for ((order1, order2), pattern) in reverse(mixed_derivative_patterns)
if @eval @capture($quoted_x, $pattern) && dr1 !== dr2
ε1, h1 = get_ε_h(derivative, length(args), findfirst(==(dr1), dict_depvar_input[ff]), fdtype, order1)
ε2, h2 = get_ε_h(derivative, length(args), findfirst(==(dr2), dict_depvar_input[ff]), fdtype, order2)
ε1, h1 = get_ε_h(derivative, length(args), findfirst(==(dr1), dict_depvar_input[ff]), fdtype, order1+order2)
ε2, h2 = get_ε_h(derivative, length(args), findfirst(==(dr2), dict_depvar_input[ff]), fdtype, order1+order2)
ε1 = use_gpu ? adapt(CuArray, ε1) : ε1
ε2 = use_gpu ? adapt(CuArray, ε2) : ε2

Expand Down

0 comments on commit 682b406

Please sign in to comment.