Skip to content

Commit

Permalink
Fix loading of multi-cycle solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
ronald-jaepel authored and schmoelder committed Oct 2, 2024
1 parent 36adbeb commit 1458a0b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions CADETProcess/simulator/cadetAdapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,17 +693,17 @@ def get_simulation_results(
)
)

if 'solution_volume' in unit_solution.keys():
sol_volume = unit_solution.solution_volume[start:end, :]
solution[unit.name]['volume'].append(
SolutionVolume(
unit.name,
unit.component_system,
time,
sol_volume
if 'solution_volume' in unit_solution.keys():
sol_volume = unit_solution.solution_volume[start:end, :]
solution[unit.name]['volume'].append(
SolutionVolume(
unit.name,
unit.component_system,
time,
sol_volume
)
)
)
start = end - 1
start = end - 1

solution = Dict(solution)

Expand Down

0 comments on commit 1458a0b

Please sign in to comment.