NOAA-OWP / ngen

Next Generation Water Modeling Engine and Framework Prototype
Other
84 stars 63 forks source link

Test domain layer implementation #882

Open stcui007 opened 2 months ago

stcui007 commented 2 months ago

This PR provides the needed test for the domain layer code implentation. It contains a unit test for the domain layer configuration parsing, creates a domain layer realization configuration file. The realization config file is used for running ngen executable on the domain layer.

With the latest revision, the domain layer output will be written to: domain_layer_layer_1.csv domain_layer_layer_2.csv domain_layer_layer_3.csv By default, the surface layer output will be written to usual catchment and nexus output files.

Additions

Unit test code two realization onfig json files

Removals

-

Changes

Minor change to src/NGen.cpp and include/realizations/config/layer.hpp

Testing

On local linux machine

  1. Running ngen executable on domain layer, for example: ./cmake_build/ngen ./data/catchment_data.geojson '' ./data/nexus_data.geojson '' data/example_domainlayer_realization_config.json

  2. Running ngen executable on domain layer with a multilayer hydrofabric and realization config. ./cmake_build/ngen ./data/catchment_data_multilayer.geojson '' ./data/nexus_data.geojson '' data/example_domainlayer_multilayer_realization_config.json This will generate an additional output file: domain_layer_layer_4.csv

  3. Unit test

Screenshots

Screenshot (71)

Screenshot (72)

Notes

-

Todos

-

Checklist

Testing checklist (automated report can be put here)

1.

Target Environment support