Skip to content

add dummy field support#935

Merged
travissluka merged 2 commits intodevelopfrom
feature/dummy_fields
Jul 28, 2023
Merged

add dummy field support#935
travissluka merged 2 commits intodevelopfrom
feature/dummy_fields

Conversation

@travissluka
Copy link
Contributor

Description

Instead of reading a state variable from a file, we can now add a "dummy" field with a constant value defined in fields_metadata.yml (see dummy_atm1). This is useful for making progress on OASIM where we need atmospheric fields, but don't want to take the time to interpolate test atm fields to the MOM6 grid, especially given that coupled hofx will be available. We'll be able to run OASIM tests with standalone SOCA.
(This "constant value field" feature might have other uses in the future that I can't think of at the moment?)

testing

A dummy field dummy_atm1 with fixed value of 5.0 has been added to fields_metadata.yml.
hofx_3d has dummy_atm1 added to its state, which can be seen in the test reference output as being correctly set to 5.0

@travissluka travissluka requested a review from HamidehGMAO July 26, 2023 19:57
@travissluka travissluka self-assigned this Jul 26, 2023
Copy link
Contributor

@HamidehGMAO HamidehGMAO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Travis! Looks good to me for now. I will add the atmospheric variables like this. Thanks.

@travissluka travissluka merged commit 1cb9d50 into develop Jul 28, 2023
@travissluka travissluka deleted the feature/dummy_fields branch July 28, 2023 03:05
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.

Add capability to create dummy atmospheric fields with fixed values.

2 participants