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

New test for diagnostics on model levels. #69

Merged
merged 18 commits into from
Apr 8, 2022
Merged

Conversation

alejandrobodas
Copy link
Collaborator

This PR addresses #68 . It implements a test that sets use_vgrid=.false. It uses the UM global inputs. The test is only run for the 'gfortran' compiler, to avoid overloading the battery of tests.

Copy link
Contributor

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

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

@alejandrobodas
This all looks good to me. Thanks!

driver/plot_test_outputs.py Outdated Show resolved Hide resolved
'xaxis_type': 'latitude',
'yaxis_type': x.dimensions[0]}
except:
print("Variable not processed: {}".format(vname))
Copy link
Contributor

Choose a reason for hiding this comment

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

Love the exception - maybe a more informative message?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@@ -549,7 +548,7 @@ subroutine subsample_and_optics(nPoints, nLevels, nColumns, nHydro, overlap,
mr_ccice,dtau_c,dtau_s,dem_c,dem_s,fl_lsrainIN,fl_lssnowIN,fl_lsgrplIN,fl_ccrainIN,&
fl_ccsnowIN
real(wp),intent(in),dimension(nPoints,nLevels,nHydro) :: reffIN
logical,intent(in) :: use_precipitation_fluxes
logical,intent(in) :: use_vgrid, use_precipitation_fluxes
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment here explaining what this means?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

use_vgrid controls the use of model levels (.false.) or an evenly-spaced (.true.) vertical grid for outputs.
@RobertPincus did you mean 'here' in the discussion or a comment in the code itself?

Copy link
Contributor

Choose a reason for hiding this comment

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

@alejandrobodas I meant a comment in the code itself, as use_vgrid is maybe less obviously clear than say use_precipitation_fluxes

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@RobertPincus I see, I've added comment as requested.

@RobertPincus
Copy link
Contributor

@alejandrobodas This looks great, I have a few small suggestions.

@alejandrobodas
Copy link
Collaborator Author

@dustinswales @RobertPincus thanks for your reviews. I've addressed Robert's comments, so I think this is ready for merging. I'll merge it sometime tomorrow unless I hear from you otherwise.

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.

Calculation of cloudsat_preclvl_index fails when use_vgrid=.false.
3 participants