Skip to content

Commit

Permalink
v0.18.1: Bugfix for :field_data default for host dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Daines committed May 12, 2022
1 parent ab872b6 commit 185a4c8
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

0 comments on commit 185a4c8

Please sign in to comment.