Skip to content

Commit

Permalink
view
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Dec 19, 2024
1 parent e9c988e commit 1044bac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ext/TrixiConvexECOSExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function stability_polynomials!(pnoms, consistency_order,

# Contribution from free coefficients
for k in (consistency_order + 1):num_stage_evals
pnoms += gamma[k - consistency_order] * normalized_powered_eigvals_scaled[:, k]
pnoms += gamma[k - consistency_order] *
view(normalized_powered_eigvals_scaled[:, k])
end

# For optimization only the maximum is relevant
Expand Down Expand Up @@ -94,8 +95,10 @@ function stability_polynomials_PERK4!(pnoms, num_stage_evals,

# Contribution from free coefficients
for k in 1:(num_stage_evals - 5)
pnoms += (k2 * dt^(k + 4) * view(normalized_powered_eigvals, :, k + 4) * gamma[k] +
k1 * dt^(k + 5) * view(normalized_powered_eigvals, :, k + 5) * gamma[k] *
pnoms += (k2 * dt^(k + 4) * view(normalized_powered_eigvals, :, k + 4) *
gamma[k] +
k1 * dt^(k + 5) * view(normalized_powered_eigvals, :, k + 5) *
gamma[k] *
(k + 5))
end

Expand Down

0 comments on commit 1044bac

Please sign in to comment.