Skip to content

Commit

Permalink
Fix to output type for partitioned arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Mar 4, 2024
1 parent f11ef65 commit 004e59b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ext/JutulPartitionedArraysExt/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ function rank_folder(pth, rank)
end

function consolidate_distributed_results(states, reports, partitions)
state = JUTUL_OUTPUT_TYPE()
report = JUTUL_OUTPUT_TYPE()
JT = Jutul.JUTUL_OUTPUT_TYPE
state = JT()
report = JT()
mlabel = partitions[1]["main_partition_label"]
if isnothing(mlabel)
consolidate_cell_values!(state, states, partitions)
else
main_state = JUTUL_OUTPUT_TYPE()
main_state = JT()
for substate in states
for (k, v) in pairs(substate)
if k == mlabel
Expand Down

0 comments on commit 004e59b

Please sign in to comment.