Skip to content

Commit

Permalink
fix sign convention in budget tests
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Dec 30, 2020
1 parent ac29962 commit 37caaaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_twodnavierstokes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function test_twodnavierstokes_stochasticforcing_energybudget(dev::Device=CPU();

dEdt_numerical = (E[2:E.i] - E[1:E.i-1]) / prob.clock.dt

dEdt_computed = W[2:E.i] - D[1:E.i-1] - R[1:E.i-1]
dEdt_computed = W[2:E.i] + D[1:E.i-1] + R[1:E.i-1]

return isapprox(dEdt_numerical, dEdt_computed, rtol = 1e-3)
end
Expand Down Expand Up @@ -121,7 +121,7 @@ function test_twodnavierstokes_stochasticforcing_enstrophybudget(dev::Device=CPU

dZdt_numerical = (Z[2:Z.i] - Z[1:Z.i-1]) / prob.clock.dt

dZdt_computed = W[2:Z.i] - D[1:Z.i-1] - R[1:Z.i-1]
dZdt_computed = W[2:Z.i] + D[1:Z.i-1] + R[1:Z.i-1]

return isapprox(dZdt_numerical, dZdt_computed, rtol = 1e-3)
end
Expand Down

2 comments on commit 37caaaf

@navidcy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/27117

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.11.0 -m "<description of version>" 37caaafccf4f62a6382db97beb6cc8808b084e74
git push origin v0.11.0

Please sign in to comment.