Skip to content

Stop model when using use_cavity=false with cavity mesh#873

Open
FinnHeu wants to merge 1 commit intomainfrom
feat/use_cavity_check
Open

Stop model when using use_cavity=false with cavity mesh#873
FinnHeu wants to merge 1 commit intomainfrom
feat/use_cavity_check

Conversation

@FinnHeu
Copy link
Copy Markdown
Collaborator

@FinnHeu FinnHeu commented Mar 26, 2026

Raise an error and stop the model when the mesh folder contains cavity mesh files (cavity_elvls.out) but the user set use_cavity=.false. in namelist.config to prevent cavity grid cells being unintendedly treated as open ocean. #872

____________________________________________________________________
  0:   ERROR: use_cavity=.false. but mesh contains cavity_elvls.out       
  0:          This mesh was prepared for cavity-resolving simulations.    
  0:          Running with use_cavity=.false. will treat cavity cells     
  0:          as open ocean, which is likely unintended.                  
  0:                                                                          
  0:          --> Either set use_cavity=.true. in namelist.config to      
  0:              enable cavities, or use a corresponding mesh            
  0:              without cavity files (e.g. CORE2 instead of CORE2ice).  
  0:  ____________________________________________________________________

@FinnHeu FinnHeu self-assigned this Mar 26, 2026
@JanStreffing
Copy link
Copy Markdown
Collaborator

I agree this is a good first step. I think the medium term goal should be to have the model behave as expected. I.e. which setting cavity = false, the cavity areas are treated as land, not as open ocean.

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