From 803033051b7f57d995b49a820dd47e2957409daa Mon Sep 17 00:00:00 2001 From: marcbasquensmunoz <150438807+marcbasquensmunoz@users.noreply.github.com> Date: Tue, 12 Nov 2024 15:55:36 +0100 Subject: [PATCH] Fix topology coefficient reset (#25) --- Project.toml | 2 +- src/modular/core/topology.jl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 5d4e4a2..5fcc0dc 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BoreholeNetworksSimulator" uuid = "b11dda51-a240-44f0-a43d-fea4e1309b86" authors = ["Marc Basquens ", "Alberto Lazzarotto "] -version = "0.1.16" +version = "0.1.17" [deps] Bessels = "0e736298-9ec6-45e8-9647-e4fc86a2fe38" diff --git a/src/modular/core/topology.jl b/src/modular/core/topology.jl index c556409..220c34d 100644 --- a/src/modular/core/topology.jl +++ b/src/modular/core/topology.jl @@ -28,4 +28,6 @@ function topology_coeffs!(M, network::BoreholeNetwork, mass_flows) end end -function topology_b!(b, ::BoreholeOperation) end \ No newline at end of file +function topology_b!(b, ::BoreholeOperation) + b .= zero(eltype(b)) +end \ No newline at end of file