Skip to content

Commit

Permalink
modified: src/Topologies/dss.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaysridhar committed Apr 29, 2024
1 parent aef837c commit 792234d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/Topologies/dss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -531,18 +531,15 @@ function dss_untransform!(
) = _get_idx_metric(sizet_metric, (level, ip, jp, elem))
pdata[data_idx1] =
p∂x∂ξ[idx11] * pperimeter_data[level, p, fidx, elem] +
p∂x∂ξ[idx12] *
pperimeter_data[level, p, fidx + 1, elem] +
p∂x∂ξ[idx12] * pperimeter_data[level, p, fidx + 1, elem] +
p∂x∂ξ[idx13] * pperimeter_data[level, p, fidx + 2, elem]
pdata[data_idx2] =
p∂x∂ξ[idx21] * pperimeter_data[level, p, fidx, elem] +
p∂x∂ξ[idx22] *
pperimeter_data[level, p, fidx + 1, elem] +
p∂x∂ξ[idx22] * pperimeter_data[level, p, fidx + 1, elem] +
p∂x∂ξ[idx23] * pperimeter_data[level, p, fidx + 2, elem]
pdata[data_idx3] =
p∂x∂ξ[idx31] * pperimeter_data[level, p, fidx, elem] +
p∂x∂ξ[idx32] *
pperimeter_data[level, p, fidx + 1, elem] +
p∂x∂ξ[idx32] * pperimeter_data[level, p, fidx + 1, elem] +
p∂x∂ξ[idx33] * pperimeter_data[level, p, fidx + 2, elem]
end
end
Expand All @@ -567,18 +564,15 @@ function dss_untransform!(
) = _get_idx_metric(sizet_metric, (level, ip, jp, elem))
pdata[data_idx1] =
p∂ξ∂x[idx11] * pperimeter_data[level, p, fidx, elem] +
p∂ξ∂x[idx21] *
pperimeter_data[level, p, fidx + 1, elem] +
p∂ξ∂x[idx21] * pperimeter_data[level, p, fidx + 1, elem] +
p∂ξ∂x[idx31] * pperimeter_data[level, p, fidx + 2, elem]
pdata[data_idx2] =
p∂ξ∂x[idx12] * pperimeter_data[level, p, fidx, elem] +
p∂ξ∂x[idx22] *
pperimeter_data[level, p, fidx + 1, elem] +
p∂ξ∂x[idx22] * pperimeter_data[level, p, fidx + 1, elem] +
p∂ξ∂x[idx32] * pperimeter_data[level, p, fidx + 2, elem]
pdata[data_idx3] =
p∂ξ∂x[idx13] * pperimeter_data[level, p, fidx, elem] +
p∂ξ∂x[idx23] *
pperimeter_data[level, p, fidx + 1, elem] +
p∂ξ∂x[idx23] * pperimeter_data[level, p, fidx + 1, elem] +
p∂ξ∂x[idx33] * pperimeter_data[level, p, fidx + 2, elem]
end
end
Expand Down

0 comments on commit 792234d

Please sign in to comment.