-
Notifications
You must be signed in to change notification settings - Fork 37
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 step for reconstruction coeffs #717
Add step for reconstruction coeffs #717
Conversation
TestingI have tested this along with MPAS-Dev/MPAS-Tools#531 on Chrysalis by running:
The resulting |
@alicebarthel, I was hoping you might be able to review this and use it as a demo of the process for reconstructing vector fields. The easiest might be if you set up and run the same 4 test cases I ran:
You can look at the |
args = ['vector_reconstruct', | ||
'-i', 'restart.nc', | ||
'-o', 'velocity_components.nc', | ||
'-w', 'coeffs_reconstruct.nc', | ||
'-v', 'normalVelocity', | ||
'--out_variables', 'velocity'] | ||
check_call(args=args, logger=self.logger) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's where it does the reconstruction of velocity by calling vector_reconstruct
.
09480af
to
07f389a
Compare
We need to add `**kwargs` to the constructors and make sure the `super()` versions of all inherited methods are getting called.
The coefficients are used to construct 3D Cartesian as well as zonal and meridional components of a field at cell centers from the normal component of the field at edges.
This is performed after writing out the vector reconstruction coefficients
07f389a
to
2bd9845
Compare
@alicebarthel, I'm going to go ahead and merge this so I can generate the reconstruction coefficients for the 10 E3SM v3 meshes, since I need to recreate the iceberg data freshwater fluxes anyway. Please feel free to take a look at the new step that this branch adds to help with the process of generating reconstruction coefficients for other meshes as well. |
Checklist
api.rst
) has any new or modified class, method and/or functions listedTesting
in this PR) any testing that was used to verify the changes