-
Notifications
You must be signed in to change notification settings - Fork 168
Harnesses for distribution tests #729
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a2920f9
feat: gamma distribution test program
hkershaw-brown c84461f
feat: normal_dist test harness
hkershaw-brown c532129
feat: beta distribution test harness
hkershaw-brown 2feb869
feat: test harness for bnrh_dist
hkershaw-brown af93c64
Merge branch 'main' into stats-tests
hkershaw-brown d04c06a
chore: remove helper script
hkershaw-brown c2df64e
not really a fix, there is no bnrh test routine so removing the harness
hkershaw-brown 100ae03
pass/fail conditions from Jeff's mega commit 5b3850fb1a08fff0ebce3f95…
hkershaw-brown f0fb242
Merge branch 'main' into stats-tests
hkershaw-brown 680b19a
absolute value for comparison beta and gamma distribution
hkershaw-brown e9e56c2
Merge branch 'main' into stats-tests
hkershaw-brown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ! DART software - Copyright UCAR. This open source software is provided | ||
| ! by UCAR, "as is", without charge, subject to all terms of use at | ||
| ! http://www.image.ucar.edu/DAReS/DART/DART_download | ||
|
|
||
| program test_beta_distribution | ||
|
|
||
| use utilities_mod, only : initialize_utilities, finalize_utilities | ||
| use beta_distribution_mod, only : test_beta | ||
|
|
||
| implicit none | ||
|
|
||
| call initialize_utilities() | ||
| call test_beta() | ||
| call finalize_utilities() | ||
|
|
||
| end program test_beta_distribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| &utilities_nml | ||
| module_details = .false. | ||
| / | ||
|
|
||
| &preprocess_nml | ||
| input_obs_qty_mod_file = '../../../assimilation_code/modules/observations/DEFAULT_obs_kind_mod.F90' | ||
| output_obs_qty_mod_file = '../../../assimilation_code/modules/observations/obs_kind_mod.f90' | ||
| input_obs_def_mod_file = '../../../observations/forward_operators/DEFAULT_obs_def_mod.F90' | ||
| output_obs_def_mod_file = '../../../observations/forward_operators/obs_def_mod.f90' | ||
| obs_type_files = '../../../observations/forward_operators/obs_def_gps_mod.f90' | ||
| quantity_files = '../../../assimilation_code/modules/observations/default_quantities_mod.f90' | ||
| / | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # DART software - Copyright UCAR. This open source software is provided | ||
| # by UCAR, "as is", without charge, subject to all terms of use at | ||
| # http://www.image.ucar.edu/DAReS/DART/DART_download | ||
|
|
||
| main() { | ||
|
|
||
|
|
||
| export DART=$(git rev-parse --show-toplevel) | ||
| source "$DART"/build_templates/buildfunctions.sh | ||
|
|
||
| MODEL="none" | ||
| EXTRA="$DART"/models/template/threed_model_mod.f90 | ||
| dev_test=1 | ||
| LOCATION="threed_sphere" | ||
| TEST="beta_dist" | ||
|
|
||
| serial_programs=( | ||
| test_beta_dist | ||
| ) | ||
|
|
||
| # quickbuild arguments | ||
| arguments "$@" | ||
|
|
||
| # clean the directory | ||
| \rm -f -- *.o *.mod Makefile .cppdefs | ||
|
|
||
| # build and run preprocess before making any other DART executables | ||
| buildpreprocess | ||
|
|
||
| # build DART | ||
| buildit | ||
|
|
||
| # clean up | ||
| \rm -f -- *.o *.mod | ||
|
|
||
| } | ||
|
|
||
| main "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ! DART software - Copyright UCAR. This open source software is provided | ||
| ! by UCAR, "as is", without charge, subject to all terms of use at | ||
| ! http://www.image.ucar.edu/DAReS/DART/DART_download | ||
|
|
||
| program test_gamma_distribution | ||
|
|
||
| use utilities_mod, only : initialize_utilities, finalize_utilities | ||
| use gamma_distribution_mod, only : test_gamma | ||
|
|
||
| implicit none | ||
|
|
||
| call initialize_utilities() | ||
| call test_gamma() | ||
| call finalize_utilities() | ||
|
|
||
| end program test_gamma_distribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| &utilities_nml | ||
| module_details = .false. | ||
| / | ||
|
|
||
| &preprocess_nml | ||
| input_obs_qty_mod_file = '../../../assimilation_code/modules/observations/DEFAULT_obs_kind_mod.F90' | ||
| output_obs_qty_mod_file = '../../../assimilation_code/modules/observations/obs_kind_mod.f90' | ||
| input_obs_def_mod_file = '../../../observations/forward_operators/DEFAULT_obs_def_mod.F90' | ||
| output_obs_def_mod_file = '../../../observations/forward_operators/obs_def_mod.f90' | ||
| obs_type_files = '../../../observations/forward_operators/obs_def_gps_mod.f90' | ||
| quantity_files = '../../../assimilation_code/modules/observations/default_quantities_mod.f90' | ||
| / | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # DART software - Copyright UCAR. This open source software is provided | ||
| # by UCAR, "as is", without charge, subject to all terms of use at | ||
| # http://www.image.ucar.edu/DAReS/DART/DART_download | ||
|
|
||
| main() { | ||
|
|
||
|
|
||
| export DART=$(git rev-parse --show-toplevel) | ||
| source "$DART"/build_templates/buildfunctions.sh | ||
|
|
||
| MODEL="none" | ||
| EXTRA="$DART"/models/template/threed_model_mod.f90 | ||
| dev_test=1 | ||
| LOCATION="threed_sphere" | ||
| TEST="gamma_dist" | ||
|
|
||
| serial_programs=( | ||
| test_gamma_dist | ||
| ) | ||
|
|
||
| # quickbuild arguments | ||
| arguments "$@" | ||
|
|
||
| # clean the directory | ||
| \rm -f -- *.o *.mod Makefile .cppdefs | ||
|
|
||
| # build and run preprocess before making any other DART executables | ||
| buildpreprocess | ||
|
|
||
| # build DART | ||
| buildit | ||
|
|
||
| # clean up | ||
| \rm -f -- *.o *.mod | ||
|
|
||
| } | ||
|
|
||
| main "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ! DART software - Copyright UCAR. This open source software is provided | ||
| ! by UCAR, "as is", without charge, subject to all terms of use at | ||
| ! http://www.image.ucar.edu/DAReS/DART/DART_download | ||
|
|
||
| program test_normal_distribution | ||
|
|
||
| use utilities_mod, only : initialize_utilities, finalize_utilities | ||
| use normal_distribution_mod, only : test_normal | ||
|
|
||
| implicit none | ||
|
|
||
| call initialize_utilities() | ||
| call test_normal() | ||
| call finalize_utilities() | ||
|
|
||
| end program test_normal_distribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| &utilities_nml | ||
| module_details = .false. | ||
| / | ||
|
|
||
| &preprocess_nml | ||
| input_obs_qty_mod_file = '../../../assimilation_code/modules/observations/DEFAULT_obs_kind_mod.F90' | ||
| output_obs_qty_mod_file = '../../../assimilation_code/modules/observations/obs_kind_mod.f90' | ||
| input_obs_def_mod_file = '../../../observations/forward_operators/DEFAULT_obs_def_mod.F90' | ||
| output_obs_def_mod_file = '../../../observations/forward_operators/obs_def_mod.f90' | ||
| obs_type_files = '../../../observations/forward_operators/obs_def_gps_mod.f90' | ||
| quantity_files = '../../../assimilation_code/modules/observations/default_quantities_mod.f90' | ||
| / | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # DART software - Copyright UCAR. This open source software is provided | ||
| # by UCAR, "as is", without charge, subject to all terms of use at | ||
| # http://www.image.ucar.edu/DAReS/DART/DART_download | ||
|
|
||
| main() { | ||
|
|
||
|
|
||
| export DART=$(git rev-parse --show-toplevel) | ||
| source "$DART"/build_templates/buildfunctions.sh | ||
|
|
||
| MODEL="none" | ||
| EXTRA="$DART"/models/template/threed_model_mod.f90 | ||
| dev_test=1 | ||
| LOCATION="threed_sphere" | ||
| TEST="normal_dist" | ||
|
|
||
| serial_programs=( | ||
| test_normal_dist | ||
| ) | ||
|
|
||
| # quickbuild arguments | ||
| arguments "$@" | ||
|
|
||
| # clean the directory | ||
| \rm -f -- *.o *.mod Makefile .cppdefs | ||
|
|
||
| # build and run preprocess before making any other DART executables | ||
| buildpreprocess | ||
|
|
||
| # build DART | ||
| buildit | ||
|
|
||
| # clean up | ||
| \rm -f -- *.o *.mod | ||
|
|
||
| } | ||
|
|
||
| main "$@" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.