Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start with Wflow (BMI) ZMQ server initialization of Wflow model * improve error handling and check request client * add `get_start_time` function also changed the `ModelHandler` so the same `wflow_bmi` function can be used for initialization and other BMI functions. * add `get_end_time` function * add functions: `finalize` and `update_until` * fix shutdown of server * add remaining BMI functions and tests * run tests from runtests.jl * renamed bmi_api.jl to bmi_service.jl should have been part of previous 2 commits... * set states during initialization Move set states functionality from initialization function to a separate `set_states` function for each Model type. It also makes coupling to OpenDA more convenient (load and save states from OpenDA). * add functions `load_state` and `save_state` * improve and fix bmi - fix list of exchange variables, if a model does not include reservoirs or lakes, these variables should be left out. - add grid types "scalar" (for uniform/constant variables) and "none" (for variables not related to a model grid) - add "flextopo" model * split struct `SurfaceFlow` SurfaceFlow is used for both kinematic wave river and overland flow. This is now split into structs SurfaceFlowRiver and SurfaceFlowLand. It simplifies the orginal update function (split into two, logic easier to follow), and dispatching on these types is easier (e.g. for BMI to extract relevant properties as grid type). * fix tests and code because of update BMI - use simulation starttime as t = 0 (not 1970). - BMI.get_time_units: return "s" (instead of "seconds since 1970-01-01T00:00:00"). - BMI.get_time_units now gets called on the model rather than the type. * add `get_start_unix_time` function to get a reference datetime. Model start time (BMI) returns always 0.0. * Flexible port number ZMQ port number can be provided as command line argument (default = 5555). * update test change of `starttime` definition * Fix bmi.jl File was not up-to-date with Master. * Align with BMI fixes Master branch * Update tests Scalar variables are not exposed through BMI. * Add doc-strings functions, README.md, comments Also update docs Wflow.jl (mention possibilty to run Wflow as a server). * Rename module and add start function server * Use relative paths in README * Update README * Update docs (typo OpenDA) Co-authored-by: Martijn Visser <[email protected]> * Update docs Co-authored-by: Martijn Visser <[email protected]> * Update server/README.md Co-authored-by: Martijn Visser <[email protected]> * Update server/README.md Co-authored-by: Martijn Visser <[email protected]> * Do not export `start` Co-authored-by: Martijn Visser <[email protected]> * Update README.md Co-authored-by: Martijn Visser <[email protected]> * Update flow.jl (remove trailing spaces) Co-authored-by: Martijn Visser <[email protected]> * Address review comments * Fix import for tests * Make testing work from `Pkg` - Project.toml needs uuid - Logging dep was missing * Run CI for Wflow Server * Fix missing yml extension * Delete CIWflowServer * Fix syntax `workflow_run` * Update CIWflowServer.yml * Remove `workflow_run` (only works on the main branch) CI workflow for Wflow ZMQ Server now also triggered by PR (and push to Master) as CI workflow for Wflow. Wflow test model (Moselle) for Wflow ZMQ Server is downloaded to Wflow\server\test\. * Fix paths * Add `julia-runtest@v1` * Replace `julia-runtest@v1` (runs Wflow tests) * Add `sbm_config.toml` for tests * Local dev install of Wflow * Update test WflowServer (merge master) * Remove exit from CIWflowServer * Remove threads from name CI WflowServer * Update codecov-action * Add dependabot githubactions * Specify directory processcoverage CI WflowServer --------- Co-authored-by: Martijn Visser <[email protected]>
- Loading branch information