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

Fix time derivative #242

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Fix time derivative #242

wants to merge 8 commits into from

Conversation

rouson
Copy link
Contributor

@rouson rouson commented Feb 24, 2025

When ready for merging, this pull request will fix an issue identified in the calculation of the desired module outputs, which are time derivatives of a subset of the model inputs, in the demonstration applications (demo/app). As before, the derivatives are estimated using a first-order-accurate finite difference formula, but the time steps are to be read from a new time data JSON object in a new input file that can be written from and read into a new time_data_t derived type.

  • Adjust the tensor-statistics.F90 demo app to read a set of names of variables from the training data set,
  • Switch from the simple SB04 training data set to the production Thompson training data set,
  • Replace the current dt calculation in tensor-statistics a time_data_t constructor (file reader), and
  • Update the time derivative calculations, and
  • Compute new histograms to determine whether they resemble those computed previously as expected.

This commit updates demo/app/tensor-statistics.F90 to read
the model input and output tensor names from
training_configuration.json to faciliatate varying the list
(e.g., to switch between the simple SB04 microphysics to the
production Thompon microphysics).  The updates mirror
previously-commited changes in
demo/app/train-cloud-microphysics.F90.
This update eliminates a name clash caused by other recent versions
of the Assert utility.
This commit fixes an issue that was most likely introduced when
the bin-filling algorithm was bifurcated into one version below
a performance threshold of 80 bins and another version at or above
the threshold.  The histogram_t bin_frequency_ component was being
defined only above the threshold.  This commit defines the
component outside (after) the performance-threshold conditional
branching so the definition happens regardless of which branch
executes.
This commit switches the variable name "potential-temperature" to
"potential_temperature" in the plot-raw-histograms gnuplot script
to match a recent change in the gnuplot file.
This commit finishes the process of adjusting the reading of model
input tensors and desired model output tensors so that both are
specified by and read from the "tensor names" object in the
training_configuration.json file.
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.

1 participant