generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Multi level hydrofabric #497
Closed
Closed
Changes from 41 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
bc9884d
Add trival multi layer hydrofabric sample.
donaldwj 0b5acf6
Added Multlevel hydrofabric sample file.
donaldwj ae1f8a9
Added level variable to HY_Catchment. Added function to get and set c…
donaldwj 32bb806
Add missing config file for a multilevel configuration testing.
donaldwj 88434af
Updated level variables in multilevel hydrofabric test to match docum…
donaldwj 758898f
Update non mpi code to handle hydro fabric multiple levels. Fix bug w…
donaldwj 6f6413e
Add support for hydrofabric levels.
donaldwj 6eb6398
Added runtime loop based on levels.
donaldwj f212291
saving for merge
donaldwj c813e1e
Fix for error in rebase.
donaldwj 79665b9
Fix missing variable in HY_Features.hpp
donaldwj b82da39
added test file using google test replacing stand alone test.
donaldwj 29216b7
fix parsing of layer data from the formulation config file.
donaldwj dbf2b27
Update test code for multilayer.
donaldwj 652e5ec
Multilayer test added to CMake.
donaldwj 922e3c5
Add datastructures for storing layer meta data and add those structur…
donaldwj 42e0a5e
Inital multi time step muti level time loop
donaldwj bb95a5a
Simulation_Time methods useful for multilayer
f1d0628
Change get_properties() of the FeatureBase class to return const or n…
donaldwj 605810a
add an internal map to the network class to track layer association.
donaldwj e1881ef
Add support for filtering a network based on level.
donaldwj 6c623cb
Create inital skelton of layer class.
donaldwj 01539c5
add <string> to simulation_time.hpp to fix VSCode issue
donaldwj 563fa87
Add missing changes to Layer.hpp
donaldwj 726fc4e
moved logic to run catchments into layer class
donaldwj 7b1ed93
remove code that is no longer needed
donaldwj 2d067fa
Fix typos
donaldwj 062586d
update layer control for better depnd btwn layers
donaldwj 2867f03
Add command to advance the current time stored in a layer.
donaldwj 1c892bf
add current_timestep_epoch_time to layers
donaldwj e119816
commit changes to simulation time object to allow current time update.
donaldwj 3f0299e
Fix to missing changes on pervious commit.
donaldwj b16bb3b
Updates to fix testing on Multilayer
donaldwj dc7b05f
Add current_time_index to SurfaceLayer to
donaldwj e7bcd87
Added more documentation to main time loop.
donaldwj 9c00898
Fix to HY_Features constructor
donaldwj 96fdee2
Add defualt layer creation to formulation manager
donaldwj c9fe2d6
fix bad units on defualt layer
donaldwj 1cb583e
Correct units string for default layer.
donaldwj 52d02b8
Fix merge error in HH_Features_MPI.hpp
donaldwj acdd022
Required fixes for serial build
mattw-nws b64af75
Create HY_Catchments with level metadata in single processor mode.
donaldwj 22a7c93
Change HY_Features constructor to use the link hydrofabric version th…
donaldwj 4b65acc
Apply spelling/grammar/clarity suggestions from code review
mattw-nws 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 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,196 @@ | ||
{ | ||
"global": { | ||
"formulations": [ | ||
{ | ||
"name": "tshirt_c", | ||
"params": { | ||
"maxsmc": 0.439, | ||
"wltsmc": 0.066, | ||
"satdk": 0.00000338, | ||
"satpsi": 0.355, | ||
"slope": 1.0, | ||
"scaled_distribution_fn_shape_parameter": 4.05, | ||
"multiplier": 0.0, | ||
"alpha_fc": 0.33, | ||
"Klf": 0.01, | ||
"Kn": 0.03, | ||
"nash_n": 2, | ||
"Cgw": 0.01, | ||
"expon": 6.0, | ||
"max_groundwater_storage_meters": 1.0, | ||
"nash_storage": [ | ||
0.0, | ||
0.0 | ||
], | ||
"soil_storage_percentage": 0.667, | ||
"groundwater_storage_percentage": 0.5, | ||
"timestep": 3600, | ||
"giuh": { | ||
"giuh_path": "./test/data/giuh/GIUH.json", | ||
"crosswalk_path": "./data/crosswalk.json" | ||
} | ||
} | ||
} | ||
], | ||
"forcing": { | ||
"file_pattern": ".*{{id}}.*.csv", | ||
"path": "./data/forcing/" | ||
} | ||
}, | ||
"time": { | ||
"start_time": "2015-12-01 00:00:00", | ||
"end_time": "2015-12-30 23:00:00", | ||
"output_interval": 3600 | ||
}, | ||
"catchments": { | ||
"cat-27": { | ||
"formulations": [ | ||
{ | ||
"name":"tshirt_c", | ||
"params": { | ||
"maxsmc": 0.439, | ||
"wltsmc": 0.066, | ||
"satdk": 0.00000338, | ||
"satpsi": 0.355, | ||
"slope": 1.0, | ||
"scaled_distribution_fn_shape_parameter": 4.05, | ||
"multiplier": 0.0, | ||
"alpha_fc": 0.33, | ||
"Klf": 0.01, | ||
"Kn": 0.03, | ||
"nash_n": 2, | ||
"Cgw": 0.01, | ||
"expon": 6.0, | ||
"max_groundwater_storage_meters": 1.0, | ||
"nash_storage": [ | ||
0.0, | ||
0.0 | ||
], | ||
"soil_storage_percentage": 0.667, | ||
"groundwater_storage_percentage": 0.5, | ||
"timestep": 3600, | ||
"giuh": { | ||
"giuh_path": "./test/data/giuh/GIUH.json", | ||
"crosswalk_path": "./data/crosswalk.json", | ||
"cdf_ordinates": [ | ||
0.1, | ||
0.35, | ||
0.2, | ||
0.14, | ||
0.1, | ||
0.06, | ||
0.05 | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"forcing": { | ||
"path": "./data/forcing/cat-27_2015-12-01 00_00_00_2015-12-30 23_00_00.csv" | ||
} | ||
}, | ||
"cat-52": { | ||
"formulations": [ | ||
{ | ||
"name": "simple_lumped", | ||
"params": { | ||
"sr": [ | ||
1.0, | ||
1.0, | ||
1.0 | ||
], | ||
"storage": 1.0, | ||
"gw_storage": 1.0, | ||
"gw_max_storage": 10.0, | ||
"nash_max_storage": 2.0, | ||
"smax": 5, | ||
"a": 1.0, | ||
"b": 10.0, | ||
"Ks": 0.1, | ||
"Kq": 0.01, | ||
"n": 3, | ||
"t": 0 | ||
} | ||
} | ||
], | ||
"forcing": { | ||
"path": "./data/forcing/cat-52_2015-12-01 00_00_00_2015-12-30 23_00_00.csv" | ||
} | ||
}, | ||
"cat-67": { | ||
"formulations": [ | ||
{ | ||
"name":"tshirt_c", | ||
"params": { | ||
"maxsmc": 0.439, | ||
"wltsmc": 0.066, | ||
"satdk": 0.00000338, | ||
"satpsi": 0.355, | ||
"slope": 1.0, | ||
"scaled_distribution_fn_shape_parameter": 4.05, | ||
"multiplier": 0.0, | ||
"alpha_fc": 0.33, | ||
"Klf": 0.01, | ||
"Kn": 0.03, | ||
"nash_n": 2, | ||
"Cgw": 0.01, | ||
"expon": 6.0, | ||
"max_groundwater_storage_meters": 1.0, | ||
"nash_storage": [ | ||
0.0, | ||
0.0 | ||
], | ||
"soil_storage_percentage": 0.667, | ||
"groundwater_storage_percentage": 0.5, | ||
"timestep": 3600, | ||
"giuh": { | ||
"giuh_path": "./test/data/giuh/GIUH.json", | ||
"crosswalk_path": "./data/crosswalk.json", | ||
"cdf_ordinates": [ | ||
0.1, | ||
0.35, | ||
0.2, | ||
0.14, | ||
0.1, | ||
0.06, | ||
0.05 | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"forcing": { | ||
"path": "./data/forcing/cat-67_2015-12-01 00_00_00_2015-12-30 23_00_00.csv" | ||
} | ||
}, | ||
"agg-1": { | ||
"formulations": [ | ||
{ | ||
"name": "bmi_fortran", | ||
"params": { | ||
"model_type_name": "bmi_fortran_noahowp", | ||
"library_file": "./extern/noah-owp-modular/cmake_build/libsurfacebmi.so", | ||
"forcing_file": "", | ||
"init_config": "./data/bmi/fortran/noah-owp-modular-init-agg-1.namelist.input", | ||
"allow_exceed_end_time": true, | ||
"main_output_variable": "QINSUR", | ||
"variables_names_map": { | ||
"PRCPNONC": "atmosphere_water__liquid_equivalent_precipitation_rate", | ||
"Q2": "atmosphere_air_water~vapor__relative_saturation", | ||
"SFCTMP": "land_surface_air__temperature", | ||
"UU": "land_surface_wind__x_component_of_velocity", | ||
"VV": "land_surface_wind__y_component_of_velocity", | ||
"LWDN": "land_surface_radiation~incoming~longwave__energy_flux", | ||
"SOLDN": "land_surface_radiation~incoming~shortwave__energy_flux", | ||
"SFCPRS": "land_surface_air__pressure" | ||
}, | ||
"uses_forcing_file": false | ||
} | ||
} | ||
], | ||
"forcing": { | ||
"path": "./data/forcing/agg-1_2015-12-01 00_00_00_2015-12-30 23_00_00.csv" | ||
} | ||
} | ||
} | ||
} |
This file contains 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 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
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.
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.
Why is this PR messing with
.gitignore
?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.
Common problem I find myself caught in. Pro tip: https://stackoverflow.com/a/1753078 ... I've started adding my "personal" Git ignore patterns to
.git/info/exclude
instead.