Deltares / Wflow.jl

Hydrological modeling
https://deltares.github.io/Wflow.jl/dev/
MIT License
119 stars 21 forks source link

check error logging on multi threading #139

Open visr opened 3 years ago

visr commented 3 years ago

There was an issue with (wrong) negative f inputs that understandably caused a DomainError in the log function here: https://github.com/Deltares/Wflow.jl/blob/af04ae4b8c9d2b65624a466a86f3b834b404be37/src/horizontal_process.jl#L85

However when running this code multithreaded, this error was not thrown. We should check why that is. #138 will help here as well.

See also https://github.com/JuliaLogging/TerminalLoggers.jl/pull/41

laurenebouaziz commented 3 years ago

In hydromt, we recently fixed the calculation of the f parameter, which should now not produce negative values anymore (constrain M function was previously not applied to f).

visr commented 3 years ago

Yes, thanks, Willem showed me that you fixed it. Still created this issue to understand the interaction with error handling and multithreading a bit better.