Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Nov 15, 2023
1 parent 435d88c commit 8809da6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/equations/bbm_bbm_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ function source_terms_manufactured(q, x, t, equations::BBMBBMEquations1D)
a5 = sinpi(2 * t - 4 * x)
a6 = sinpi(4 * t - 2 * x)
a7 = cospi(4 * t - 2 * x)
dq1 = -2*pi^2*D^2*(4*pi*a6 - a7)*exp(t)/3 + 2*pi*D*exp(t/2)*a3 - 2*pi*exp(3*t/2)*a4*a6 + 2*pi*exp(3*t/2)*a3*a7 - 4*pi*exp(t)*a6 + exp(t)*a7
dq2 = -pi^2*D^2*(a4 + 2*pi*a3)*exp(t/2)/3 + 2*pi*g*exp(t)*a6 - exp(t/2)*a4/2 - pi*exp(t/2)*a3 - pi*exp(t)*a5
dq1 = -2 * pi^2 * D^2 * (4 * pi * a6 - a7) * exp(t) / 3 + 2 * pi * D * exp(t / 2) * a3 -
2 * pi * exp(3 * t / 2) * a4 * a6 + 2 * pi * exp(3 * t / 2) * a3 * a7 -
4 * pi * exp(t) * a6 + exp(t) * a7
dq2 = -pi^2 * D^2 * (a4 + 2 * pi * a3) * exp(t / 2) / 3 + 2 * pi * g * exp(t) * a6 -
exp(t / 2) * a4 / 2 - pi * exp(t / 2) * a3 - pi * exp(t) * a5

return SVector(dq1, dq2)
end
Expand Down

0 comments on commit 8809da6

Please sign in to comment.