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

WIP: Issue379 netCDF generator #407

Closed
wants to merge 264 commits into from
Closed

Conversation

timspainNERSC
Copy link
Collaborator

netCDF file generation

Fixes #379


Change Description

To avoid cluttering the repo with binary netCDF files (as far as possible), generate those files that can be generated from python scripts. This involves adding custom targets and commands to the CMakeLists.txt files to run python on the necessary scripts.


Test Description

Since the ERA5 and TOPAZ tests depend on some of these netCDF files, if these tests both continue to pass without file not found errors, then the changes relating to this issue can be considered to pass testing.

einola and others added 30 commits October 11, 2022 14:01
The setData function didn't set qio, but neither did updateBefore, so qio was left uninitialised, causing unexpected behaviour.
I had some problems understanding the results, so I went through this with a fine-toothed comb. It's fine in the end (I'm just using too long time steps) - but I found that adding a bunch of 'const' helps to make sure. Also, found a bug where the ice temperature is set in K, and not C when everything melts (not sure if it matters, but it gave surprising results).
They specify a linear increase of a given number of cm over three different periods.
Specifically, I've renamed MonthlyFluxes to MU71Atmosphere and MonthlyIceAlbedo to MU71Albedo. These names better reflect what the functions do.
Here I fix the implementation of the zero layer model to follow Semtner's original formulation in modifying the albedo using the extinction coefficient I0. This fixes the original formulation in neXtSIM which was lacking in this respect. This commit also includes some minor bug fixes. Everything seems to work fine now.
Following M&U '71 and others, I've implemented a spline lookup using boost instead of the linear lookup I had before. The results are visibly much smoother, and compare better with the literature results (in that respect. Some other minor changes.
A longer time step and a nicer figure of the ice and snow thickness.
Consists of adding doxygen-friendly comments, where they were missing.
Consists of adding entries to ``getHelpRecursive`` of ``IAtmosphereBoundary`` (``AtmosphereBoundaryModule.cpp``). Question if we should format the help text to wrap lines?
timspainNERSC and others added 23 commits September 15, 2023 06:29
Conflicts:
	physics/src/modules/include/BasicIceOceanHeatFlux.hpp
Add ice corrections to the gathering branch
Merge the better dynamics into the gathering branch.
Merge the better thermo into the gathering branch.
Merge thermo demo into the gathering branch.
@timspainNERSC timspainNERSC added the enhancement New feature or request label Sep 21, 2023
@timspainNERSC timspainNERSC added this to the 2 Functional tests milestone Sep 21, 2023
@timspainNERSC timspainNERSC self-assigned this Sep 21, 2023
@timspainNERSC
Copy link
Collaborator Author

Almost all of the netCDF files have been removed from the repository, so this PR has been fulfilled elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants