Skip to content

Commit

Permalink
Cleanup_after_CI_PR (#9)
Browse files Browse the repository at this point in the history
* updated yaml and removed some realization files.

* modified instructions to copy files for topmodel ngen run.
  • Loading branch information
ajkhattak authored Jan 11, 2024
1 parent d4aacb2 commit 2d61b86
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 188 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ngen_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ jobs:
- name: Run Ngen Test for SMP
run: |
mv ${{ steps.ngen_id1.outputs.build-dir }} ./ngen-build/
inputfile='extern/SoilMoistureProfiles/SoilMoistureProfiles/configs/realization_config_smp_ngenCI.json'
inputfile='extern/SoilMoistureProfiles/SoilMoistureProfiles/realizations/realization_config_smp.json'
./ngen-build/ngen ./data/catchment_data.geojson "cat-27" ./data/nexus_data.geojson "nex-26" $inputfile
- name: Run Ngen Test with Topmodel
run: |
cp extern/topmodel/topmodel/data/*.dat data
inputfile='extern/SoilMoistureProfiles/SoilMoistureProfiles/configs/realization_config_smp_topmodel_ngenCI.json'
inputfile='extern/SoilMoistureProfiles/SoilMoistureProfiles/realizations/realization_config_smp_topmodel.json'
./ngen-build/ngen ./data/catchment_data.geojson "cat-27" ./data/nexus_data.geojson "nex-26" $inputfile
1 change: 1 addition & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ mkdir smp && cd smp (in the nextgen directory)
ln -s ../extern
ln -s ../data
ln -s extern/SoilMoistureProfiles/SoilMoistureProfiles/realizations
cp extern/topmodel/topmodel/data/* data
```
### Run
- Standalone example
Expand Down
73 changes: 0 additions & 73 deletions configs/realization_config_smp_ngenCI.json

This file was deleted.

109 changes: 0 additions & 109 deletions configs/realization_config_smp_topmodel_ngenCI.json

This file was deleted.

2 changes: 1 addition & 1 deletion realizations/realization_config_smp.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"name": "bmi_c++",
"params": {
"model_type_name": "bmi_smp",
"library_file": "./extern/SoilMoistureProfiles/cmake_build/libsmpbmi",
"library_file": "./extern/SoilMoistureProfiles/SoilMoistureProfiles/cmake_build/libsmpbmi",
"init_config": "./extern/SoilMoistureProfiles/SoilMoistureProfiles/configs/config_conceptual.txt",
"allow_exceed_end_time": true,
"main_output_variable": "soil_storage",
Expand Down
6 changes: 3 additions & 3 deletions realizations/realization_config_smp_topmodel.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"name": "bmi_c",
"params": {
"model_type_name": "bmi_c_pet",
"library_file": "./extern/evapotranspiration/cmake_build/libpetbmi",
"library_file": "./extern/evapotranspiration/evapotranspiration/cmake_build/libpetbmi",
"forcing_file": "",
"init_config": "./extern/cfe/cfe/configs/cat_87_bmi_config_pet_pass.txt",
"allow_exceed_end_time": true,
Expand All @@ -55,7 +55,7 @@
"params": {
"model_type_name": "bmi_c_topmodel",
"library_file": "./extern/topmodel/cmake_build/libtopmodelbmi",
"init_config": "./data/topmod.run",
"init_config": "./extern/topmodel/topmodel/data/topmod.run",
"allow_exceed_end_time": true,
"main_output_variable": "Qout",
"registration_function": "register_bmi_topmodel",
Expand All @@ -77,7 +77,7 @@
"name": "bmi_c++",
"params": {
"model_type_name": "bmi_smp",
"library_file": "./extern/SoilMoistureProfiles/cmake_build/libsmpbmi",
"library_file": "./extern/SoilMoistureProfiles/SoilMoistureProfiles/cmake_build/libsmpbmi",
"init_config": "./extern/SoilMoistureProfiles/SoilMoistureProfiles/configs/config_topmodel.txt",
"allow_exceed_end_time": true,
"main_output_variable": "soil_storage",
Expand Down

0 comments on commit 2d61b86

Please sign in to comment.