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 physics savepoint test #5

Merged
merged 52 commits into from
Oct 13, 2021
Merged

Add physics savepoint test #5

merged 52 commits into from
Oct 13, 2021

Conversation

elynnwu
Copy link
Collaborator

@elynnwu elynnwu commented Oct 5, 2021

Moving/duplicating some of the infrastructure in fv3core tests up to the integration directory. In this PR, we include savepoint tests for physics only.

elynnwu and others added 30 commits August 25, 2021 21:45
`gtc:gt:cpu_ifirst` threshold update
Reset the grid only if we have multiple ranks
Use numpy API to calculate worst error
Re-use code for compare_scalar
…Modeling/fv3gfs-integration into add-physics-savepoint-test
@elynnwu elynnwu marked this pull request as ready for review October 5, 2021 21:58
"va": {},
}

def collect_input_data(self, serializer, savepoint):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All functions except for compute_parallel can be removed once Grid initialization is ready

Copy link
Contributor

@eddie-c-davis eddie-c-davis left a comment

Choose a reason for hiding this comment

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

This is an impressive amount of work. Will the overlap with fv3core, overrides, translate classes, etc., be combined as we move toward a mono repo?



# get MPI environment
sys.path.append("/usr/local/serialbox/python") # noqa: E402
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a reliable location for serialbox?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It isn't, but it is how fv3core has it for now. I think the best solution is to be able to pip install serialbox, otherwise we may want to move to an environment variable for this.

v35
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious if there are problems in v36?

Copy link
Contributor

Choose a reason for hiding this comment

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

This has been tested with v36 for GTC backends, it should be updated

@elynnwu
Copy link
Collaborator Author

elynnwu commented Oct 13, 2021

Thanks Eddie for reviewing this! This infrastructure is indeed shared across dycore and physics. Our next step will be to move fv3core savepoint tests here, but given how CI currently works we will need to move things with care.

@elynnwu elynnwu merged commit cce45d4 into main Oct 13, 2021
@elynnwu elynnwu deleted the add-physics-savepoint-test branch October 13, 2021 18:46
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.

4 participants