Skip to content

Conversation

@simone-silvestri
Copy link
Collaborator

@simone-silvestri simone-silvestri commented Jul 29, 2025

On ClimaOcean, ice is building up with a zero concentration in regions that should not generate sea ice. This is because if concentration is zero, both the atmospheric flux is zero and the melt flux is zero, so ice can build up over time.
It does not necessarily influence the ocean but still it is wrong.

This PR corrects this by resetting the thickness if the new concentration is identically zero (in main, we are resetting only the concentration if thickness is identically zero, but it should go both ways).

@simone-silvestri
Copy link
Collaborator Author

This is an example of such behavior on 5-year integration at 1/6th of a degree
image
Note that effective ice thickness is thickness * concentration

@codecov
Copy link

codecov bot commented Jul 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.48%. Comparing base (8296ec2) to head (cbc2eff).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
+ Coverage   65.36%   65.48%   +0.11%     
==========================================
  Files          28       28              
  Lines         898      901       +3     
==========================================
+ Hits          587      590       +3     
  Misses        311      311              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@glwagner
Copy link
Member

I didn't completely grasp your explanation why the ice thickness builds up. Can you explain it in a bit more detail?

@simone-silvestri
Copy link
Collaborator Author

I didn't completely grasp your explanation why the ice thickness builds up. Can you explain it in a bit more detail?

I am also not 100% sure, but I hypothesize that there are tiny bits of ice forming from the ocean. The concentration then drops to zero. Then the fluxes from the atmosphere are multiplied by (a > 0) so they are shut down, and the melting flux is multiplied by the concentration, so the only flux that remains is the freezing one. So, I think this PR is necessary but there might be something else wrong that will pop up later on that we have to correct.

@simone-silvestri simone-silvestri merged commit 01e39e0 into main Jul 30, 2025
8 checks passed
@simone-silvestri simone-silvestri deleted the ss/reset-thickness branch July 30, 2025 08:06
@glwagner
Copy link
Member

Is it a good idea to just bulid up a bunch of conditionals for the evolution? It seems like it would be better to have a simpler formulation without the conditionals. It would be easier to understand.

@glwagner
Copy link
Member

I'd suggest that it isn't a good practice to throw in fixes for things that aren't understood because it doesn't actually represent real progress. It's just superficial progress that will ultimately cost more time in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants