Skip to content

Commit

Permalink
bump version and...
Browse files Browse the repository at this point in the history
add comments about forcing (time), change @show to log info
  • Loading branch information
verseve committed Apr 14, 2022
1 parent 23338f3 commit 3ad095b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Wflow"
uuid = "d48b7d99-76e7-47ae-b1d5-ff0c1cf9a818"
authors = ["Deltares and contributors"]
version = "0.5.2"
version = "0.6.0"

[deps]
BasicModelInterface = "59605e27-edc0-445a-b93d-c09a3a50b330"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## v0.6.0 - 2022-04-14

### Added
- The [FLEXTopo](@ref config_flextopo) model.
Expand Down
2 changes: 1 addition & 1 deletion src/flextopo_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function initialize_flextopo_model(config::Config)

classes = get(config.model, "classes", "")
nclass = length(classes)
@show classes nclass
@info "Classes are set to names `$(join(classes,", "))` and have size `$nclass`."
kclass = [1] #needed to initialize

# dictionary of available functions for each store
Expand Down
6 changes: 5 additions & 1 deletion src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function get_at(
times::AbstractVector{<:TimeType},
t::TimeType,
)
# this behaves like a forward fill interpolation
# this behaves like a backward fill interpolation
i = findfirst(>=(t), times)
t < first(times) && throw(DomainError("time $t before dataset begin $(first(times))"))
i === nothing && throw(DomainError("time $t after dataset end $(last(times))"))
Expand Down Expand Up @@ -253,6 +253,10 @@ function update_forcing!(model)
param_lake = get_param_lake(model)
end

# Wflow expects `right` labeling of the forcing time interval, e.g. daily precipitation
# at 01-02-2000 00:00:00 is the accumulated total precipitation between 01-01-2000
# 00:00:00 and 01-02-2000 00:00:00.

# load from NetCDF into the model according to the mapping
for (par, ncvar) in forcing_parameters
# no need to update fixed values
Expand Down

2 comments on commit 3ad095b

@verseve
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/58511

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.0 -m "<description of version>" 3ad095bfb0a897828ca6c3447b545b0cfa50c43c
git push origin v0.6.0

Please sign in to comment.