Skip to content

Commit

Permalink
Merge pull request #19 from PALEOtoolkit/field_data_default_fix
Browse files Browse the repository at this point in the history
v0.18.1: Bugfix for :field_data default for host dependencies
  • Loading branch information
sjdaines authored May 13, 2022
2 parents fe27b85 + 185a4c8 commit 752ae89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PALEOboxes"
uuid = "804b410e-d900-4b2a-9ecd-f5a06d4c1fd4"
authors = ["Stuart Daines <[email protected]>"]
version = "0.18.0"
version = "0.18.1"

[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Expand Down
4 changes: 2 additions & 2 deletions src/Domain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ function allocate_variables!(
space = get_attribute(v, :space)

if field_data == UndefinedData
if host_dependent(v)
if host_dependent(v) && (get_attribute(v, :vfunction, VF_Undefined) == VF_Undefined)
field_data = ScalarData
set_attribute!(v, :field_data, ScalarData)
field_data = get_attribute(v, :field_data)
@info " set :field_data=$field_data for host-dependent Variable $(fullname(v))"
else
error("allocate_variables! :field_data=UndefinedData for Variable $(fullname(v))")
error("allocate_variables! :field_data=UndefinedData for Variable $(fullname(v)) $v")
end
end
v_field = allocate_field(
Expand Down

2 comments on commit 752ae89

@sjdaines
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 register()

@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/60157

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.18.1 -m "<description of version>" 752ae89f3d61a07c12479507c7c54a64c287aa7e
git push origin v0.18.1

Please sign in to comment.