Skip to content

Commit

Permalink
postfix the phase name to species name when saving
Browse files Browse the repository at this point in the history
  • Loading branch information
hwpang committed Jun 8, 2023
1 parent 7074e9c commit de211b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ end
function save(syss::T, save_name::String) where {T<:SystemSimulation}
df = DataFrame(syss.sol)
for sim in syss.sims
rename!(df, names(df)[sim.domain.indexes[1]:sim.domain.indexes[2]] .=> sim.names)
rename!(df, names(df)[sim.domain.indexes[1]:sim.domain.indexes[2]] .=> sim.names .* "($(sim.domain.phase.name))")
for (thermovariable, index) in sim.domain.thermovariabledict
rename!(df, names(df)[index] => thermovariable)
end
Expand Down

0 comments on commit de211b7

Please sign in to comment.