Skip to content

Conversation

@simone-silvestri
Copy link
Collaborator

@simone-silvestri simone-silvestri commented Nov 15, 2025

I noticed there was this bug.
This meant that the correct fill halos was not hit for a cubed sphere, since it requires a tuple of fields with (Face, Center, <:Any) and (Center, Face, <:Any). defined here

function fill_halo_regions!(field_1::CubedSphereField{<:Face, <:Center},
field_2::CubedSphereField{<:Center, <:Face}; signed = true, kwargs...)
grid = field_1.grid

@siddharthabishnu this might be the error that you were searching for? Can you test the baroclinic aquaplanet on this branch? If this fixes you issue can you also add a test?

@siddharthabishnu
Copy link
Contributor

I noticed there was this bug. This meant that the correct fill halos was not hit for a cubed sphere, since it requires a tuple of fields with (Face, Center, <:Any) and (Center, Face, <:Any). defined here

function fill_halo_regions!(field_1::CubedSphereField{<:Face, <:Center},
field_2::CubedSphereField{<:Center, <:Face}; signed = true, kwargs...)
grid = field_1.grid

@siddharthabishnu this might be the error that you were searching for? Can you test the baroclinic aquaplanet on this branch? If this fixes you issue can you also add a test?

It might very well be! This is a major bug! Great catch! I clearly remember implementing this correctly earlier, so I must have missed it later while resolving merge conflicts for another major PR. I’ll add a test.

@navidcy navidcy added bug 🐞 Even a perfect program still has bugs cubed sphere 🧊🌎 labels Nov 15, 2025
@simone-silvestri simone-silvestri merged commit 4e9d709 into main Nov 16, 2025
72 checks passed
@simone-silvestri simone-silvestri deleted the ss/fix-free-surface branch November 16, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🐞 Even a perfect program still has bugs cubed sphere 🧊🌎

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants