-
Notifications
You must be signed in to change notification settings - Fork 63
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 for #453 #460
Fix for #453 #460
Conversation
Am I correct in understanding that this is supposed to address #453 ? |
@@ -59,7 +59,8 @@ | |||
"main_output_variable": "Q_OUT", | |||
"registration_function": "register_bmi_cfe", | |||
"variables_names_map": { | |||
"water_potential_evaporation_flux": "ETRAN", | |||
"water_potential_evaporation_flux": "water_potential_evaporation_flux", |
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.
This bypasses Noah's ETRAN variable and uses the old in-framework ET calculator... I don't think we want to do this. Was that intentional?
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.
Using ETRAB somehow generate a runtime error if I remember correctly.
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.
I did some re-testing, it seems to work ok with ETRAN in place. The runtime error might be caused by something else. So we can reverse back.
@@ -59,7 +59,8 @@ | |||
"main_output_variable": "Q_OUT", | |||
"registration_function": "register_bmi_cfe", | |||
"variables_names_map": { | |||
"water_potential_evaporation_flux": "ETRAN", | |||
"water_potential_evaporation_flux": "water_potential_evaporation_flux", | |||
"atmosphere_water__liquid_equivalent_precipitation_rate" : "APCP_surface", |
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.
This bypasses Noah's QINSUR
variable.... though I suppose this was happening by default before anyway. This should probably be QINSUR
instead of APCP_surface
.
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.
See the reply to the last comment.
test/core/nexus/NexusTests.cpp
Outdated
@@ -47,7 +47,7 @@ TEST_F(Nexus_Test, TestInit0) | |||
//HY_HydroLocationType type(HY_HydroLocationType::undefined); //!< Test data type | |||
//HY_IndirectPosition pos; | |||
//std::shared_ptr<HY_HydroLocation>location = std::make_shared<HY_HydroLocation>(point, type, pos); | |||
std::vector<string> contrib = {"cat-1"}; | |||
std::vector<std::string> contrib = {"cat-1"}; |
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.
This is out of scope, probably revert it, I have a branch in work right now to correct several compiler issues... it should pass tests without this (so far), so just leave the change in your working copy if you need it and don't commit.
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.
OK. I left it as is so it can pass the runner tests. If it can pass the tests without it, I would be happy to leave it out.
@@ -1,32 +1,35 @@ | |||
&timing ! and output |
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.
These changes require a version of Noah that hasn't been pinned yet in ngen... so the tests are failing. Revert all these but save them, we should probably make a separate PR to update Noah... and that plus these edits will have to be done in the same PR to make the tests pass.
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.
I have been wondering why the tests are failing? I used the most recent Noah and everything seems to be working locally. There are apparently incorrect variable names in it such as "input_filename" which should be "forcing_filename".
@@ -1,32 +1,35 @@ | |||
&timing ! and output |
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.
These changes require a version of Noah that hasn't been pinned yet in ngen... so the tests are failing. Revert all these but save them, we should probably make a separate PR to update Noah... and that plus these edits will have to be done in the same PR to make the tests pass.
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.
See the reply to the previous comment.
@@ -1,32 +1,35 @@ | |||
&timing ! and output |
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.
These changes require a version of Noah that hasn't been pinned yet in ngen... so the tests are failing. Revert all these but save them, we should probably make a separate PR to update Noah... and that plus these edits will have to be done in the same PR to make the tests pass.
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.
See the reply to the previous comment.
@@ -0,0 +1,38 @@ | |||
General Parameters |
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.
These changes require a version of Noah that hasn't been pinned yet in ngen... so the tests are failing. Revert all these but save them, we should probably make a separate PR to update Noah... and that plus these edits will have to be done in the same PR to make the tests pass.
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.
See the reply to the previous comment.
@@ -0,0 +1,650 @@ | |||
&usgs_veg_categories |
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.
These changes require a version of Noah that hasn't been pinned yet in ngen... so the tests are failing. Revert all these but save them, we should probably make a separate PR to update Noah... and that plus these edits will have to be done in the same PR to make the tests pass.
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.
See the reply to the previous comment.
@@ -0,0 +1,45 @@ | |||
Soil Parameters |
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.
These changes require a version of Noah that hasn't been pinned yet in ngen... so the tests are failing. Revert all these but save them, we should probably make a separate PR to update Noah... and that plus these edits will have to be done in the same PR to make the tests pass.
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.
See the reply to the previous comment.
@@ -0,0 +1,230 @@ | |||
{ |
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.
I do not understand what this file is. Is it supposed to be a merger of example_bmi_multi_realization_config.json
and example_bmi_multi_realization_config__macos.json
? I don't understand why SLoTH and SFT and SMP are now in here. And I don't think this realization will even work with the versions of Noah and CFE that are currently pinned in /extern.
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.
This is modeled after example_realization_config_w_bmi_c__linux.json and the MACOS version and combined them. We already have a updated example_bmi_multi_realization_config.json that is working with Noah, at least locally. I thought to add the SLoTH and SFT and SMP to include more modules so more up to date. The SLoTH and SFT and SMP part is basically taken from config in Soil Moisture modules. This one does not include Noah. The Noah is included in example_bmi_multi_realization_config.json.
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.
This file also contains some older models that are still in Ngen. Perhaps it is still of use?
I have replied to your comments in the Pull Request.
…On Mon, Oct 24, 2022 at 4:00 PM Matt Williamson ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In data/example_bmi_multi_realization_config.json
<#460 (comment)>:
> @@ -59,7 +59,8 @@
"main_output_variable": "Q_OUT",
"registration_function": "register_bmi_cfe",
"variables_names_map": {
- "water_potential_evaporation_flux": "ETRAN",
+ "water_potential_evaporation_flux": "water_potential_evaporation_flux",
This bypasses Noah's ETRAN variable and uses the old in-framework ET
calculator... I don't think we want to do this. Was that intentional?
------------------------------
In data/example_bmi_multi_realization_config.json
<#460 (comment)>:
> @@ -59,7 +59,8 @@
"main_output_variable": "Q_OUT",
"registration_function": "register_bmi_cfe",
"variables_names_map": {
- "water_potential_evaporation_flux": "ETRAN",
+ "water_potential_evaporation_flux": "water_potential_evaporation_flux",
+ "atmosphere_water__liquid_equivalent_precipitation_rate" : "APCP_surface",
This bypasses Noah's QINSUR variable.... though I suppose this was
happening by default before anyway. This should probably be QINSUR
instead of APCP_surface.
------------------------------
In test/core/nexus/NexusTests.cpp
<#460 (comment)>:
> @@ -47,7 +47,7 @@ TEST_F(Nexus_Test, TestInit0)
//HY_HydroLocationType type(HY_HydroLocationType::undefined); //!< Test data type
//HY_IndirectPosition pos;
//std::shared_ptr<HY_HydroLocation>location = std::make_shared<HY_HydroLocation>(point, type, pos);
- std::vector<string> contrib = {"cat-1"};
+ std::vector<std::string> contrib = {"cat-1"};
This is out of scope, probably revert it, I have a branch in work right
now to correct several compiler issues... it should pass tests without this
(so far), so just leave the change in your working copy if you need it and
don't commit.
------------------------------
In data/bmi/fortran/noah-owp-modular-init-cat-27.namelist.input
<#460 (comment)>:
> @@ -1,32 +1,35 @@
-&timing ! and output
These changes require a version of Noah that hasn't been pinned yet in
ngen... so the tests are failing. Revert all these but save them, we should
probably make a separate PR to update Noah... and that plus these edits
will have to be done in the same PR to make the tests pass.
------------------------------
In data/bmi/fortran/noah-owp-modular-init-cat-52.namelist.input
<#460 (comment)>:
> @@ -1,32 +1,35 @@
-&timing ! and output
These changes require a version of Noah that hasn't been pinned yet in
ngen... so the tests are failing. Revert all these but save them, we should
probably make a separate PR to update Noah... and that plus these edits
will have to be done in the same PR to make the tests pass.
------------------------------
In data/bmi/fortran/noah-owp-modular-init-cat-67.namelist.input
<#460 (comment)>:
> @@ -1,32 +1,35 @@
-&timing ! and output
These changes require a version of Noah that hasn't been pinned yet in
ngen... so the tests are failing. Revert all these but save them, we should
probably make a separate PR to update Noah... and that plus these edits
will have to be done in the same PR to make the tests pass.
------------------------------
In data/bmi/fortran/parameters/GENPARM.TBL
<#460 (comment)>:
> @@ -0,0 +1,38 @@
+General Parameters
These changes require a version of Noah that hasn't been pinned yet in
ngen... so the tests are failing. Revert all these but save them, we should
probably make a separate PR to update Noah... and that plus these edits
will have to be done in the same PR to make the tests pass.
------------------------------
In data/bmi/fortran/parameters/MPTABLE.TBL
<#460 (comment)>:
> @@ -0,0 +1,650 @@
+&usgs_veg_categories
These changes require a version of Noah that hasn't been pinned yet in
ngen... so the tests are failing. Revert all these but save them, we should
probably make a separate PR to update Noah... and that plus these edits
will have to be done in the same PR to make the tests pass.
------------------------------
In data/bmi/fortran/parameters/SOILPARM.TBL
<#460 (comment)>:
> @@ -0,0 +1,45 @@
+Soil Parameters
These changes require a version of Noah that hasn't been pinned yet in
ngen... so the tests are failing. Revert all these but save them, we should
probably make a separate PR to update Noah... and that plus these edits
will have to be done in the same PR to make the tests pass.
------------------------------
In data/example_realization_config_unified.json
<#460 (comment)>:
> @@ -0,0 +1,230 @@
+{
I do not understand what this file is. Is it supposed to be a merger of
example_bmi_multi_realization_config.json and
example_bmi_multi_realization_config__macos.json? I don't understand why
SLoTH and SFT and SMP are now in here. And I don't think this realization
will even work with the versions of Noah and CFE that are currently pinned
in /extern.
—
Reply to this email directly, view it on GitHub
<#460 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SRLVZ7NWAO3L6E5IF23WE32FNANCNFSM6AAAAAARNCDPPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I see what you meant about renaming |
…on as it exists in another example
The test_bmi_c part is in data/example_realization_config_w_bmi_c__lin_mac.json |
So, three things:
|
The config json file needs more verification. |
Okay this is almost ready now I think... There are a few follow-on items not in the original description that would be good:
|
Working on them. |
These are done and uploaded.
…On Tue, Nov 1, 2022 at 12:44 PM Matt Williamson ***@***.***> wrote:
Okay this is almost ready now I think... There are a few follow-on items
not in the original description that would be good:
1. Can we add to this the deletion of
example_realization_config_w_bmi_c__linux.json and
example_realization_config_w_bmi_c__mac.json (since the new lin_mac
file replaces it)...
2. Replace the filename example_realization_config_w_bmi_c__linux.json
in Bmi_Testing_Util.hpp with
data/example_realization_config_w_bmi_c__lin_mac.json (this part of
the utility does not appear to be used anywhere so this should be all
that's needed)
3. Edit the text at the bottom of REALIZATION_CONFIG.md to point to
the single example_realization_config_w_bmi_c__lin_mac.json file.
—
Reply to this email directly, view it on GitHub
<#460 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SRJXYYTVB2FRAOSP3HTWGFJIRANCNFSM6AAAAAARNCDPPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
[Short description explaining the high-level reason for the pull request]
Additions
data/example_realization_config_w_bmi_c__lin_mac.json
data/bmi/c/pet/cat-52_bmi_config.ini
Removals
Changes
data/example_bmi_multi_realization_config.json
data/example_bmi_multi_realization_config_w_noah_pet_cfe.json
data/bmi/fortran/noah-owp-modular-init-cat-27.namelist.input
data/bmi/fortran/noah-owp-modular-init-cat-52.namelist.input
data/bmi/fortran/noah-owp-modular-init-cat-67.namelist.input
Testing
Ran ngen tests on Linux machines.
Screenshots
Notes
Todos
Checklist
Testing checklist (automated report can be put here)
Target Environment support