Skip to content
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

add default get_field methods #1210

Merged
merged 1 commit into from
Feb 28, 2025
Merged

add default get_field methods #1210

merged 1 commit into from
Feb 28, 2025

Conversation

juliasloan25
Copy link
Member

Purpose

Add default methods for get_field methods that are commonly not extended for surface models. These return reasonable default values, and can be extended by surface models that won't use the defaults (e.g. the full land model).

I decided to add these now since adding the full land simulation adds some new get_field methods for surface model properties, e.g. emissivity, that have previously been assumed to have default values. This PR reduces code duplication by moving those common default values into default methods, instead of defining the same defaults for multiple surface models.

At first I added this as part of #1199, but I pulled it into a separate PR to make that one a little smaller.

@juliasloan25 juliasloan25 merged commit 8ee21dc into main Feb 28, 2025
11 checks passed
@juliasloan25 juliasloan25 deleted the js/get_field_defaults branch February 28, 2025 02:05
@juliasloan25 juliasloan25 self-assigned this Feb 28, 2025
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