-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds tests for Poisson solvers with Flat topologies #1560
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this and hope all the tests pass on cpus and gpus!
GPU tests fail as expected!
Now to try a fix... |
Co-authored-by: Ali Ramadhan <ali.hh.ramadhan@gmail.com>
I was looking at the errors on
|
It's an error from the constructor for |
Thanks @glwagner , I will take a look now and see if it's an easy fix or not. Hopefully it is |
I think that the problem is that we are passing an integer and not an array. I think the fix should be something like this, as then we are passing something of the right type. Unfortunately, when I try trying the
|
I disagree and let me clarify my statement that "the test uses incorrect syntax". We are testing topologies that are both two- and three-dimensional, but using syntax to construct Oceananigans.jl/test/test_poisson_solvers.jl Lines 257 to 266 in 365d00d
this list includes two-dimensional topologies like However, when we construct Oceananigans.jl/test/test_poisson_solvers.jl Line 140 in 365d00d
which only works if there is no For example, if the topology is vs_grid = VerticallyStretchedRectilinearGrid(FT, architecture=arch, topology=topo, size=(Ny, Nz), y=(0, 1), zF=zF) I'll fix this up! |
Thanks @glwagner for clarifying and I see the point. Thanks also in advance for fixing it up. I encountered the same problem when I wanted to test |
FYI @francispoulin I fixed issues with syntax and the constructor, and found that now the Poisson solver tests legitimately fail for I think this is a low-priority issue so it may make sense to write a warning / error in the constructor for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together and I agree it's better.
I will look at the tridiagonal solver this afternoon and see if I can figure it out. However, I think that adding a warning and merging the PR is probably a good idea. A fix for the solver can come under another PR
…nt for with Flat topologies and skips tests
No description provided.