Skip to content

Commit

Permalink
Fixed csv ouput wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
JTHesse committed Apr 10, 2024
1 parent f9ff591 commit 8fc1397
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IO/csv_export.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function create_result_file(filename::String, outputs::Dict)
csv_file = open(filename, "w")

header = "Time,"
for key in keys(outputs["Fields"])
for key in keys(sort(outputs["Fields"]))
header = string(header, key, ",")
end
write(csv_file, header * "\n")
Expand Down
1 change: 0 additions & 1 deletion src/IO/exodus_export.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ function init_results_in_exodus(exo::ExodusDatabase, output::Dict{}, coords::Uni
global_outputs = Dict(key => value for (key, value) in output["Fields"] if (value["global_var"]))
nodal_output_names = collect(keys(sort(nodal_outputs)))
global_output_names = collect(keys(sort(global_outputs)))
# compute_names = collect(keys(sort(computes)))
# write_number_of_variables(exo, NodalVariable, length(nodal_output_names))
write_names(exo, NodalVariable, nodal_output_names)
# nnodes = num_nodes(exo.init)
Expand Down
3 changes: 3 additions & 0 deletions src/Physics/Damage/Energy_release.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ function compute_damage(datamanager::Module, nodes::Union{SubArray,Vector{Int64}
end

if aniso_damage
if !rotation
@error "Anisotropic damage requires Angles field"
end
aniso_crit_values = datamanager.get_aniso_crit_values()
bond_norm::Float64 = 0.0
end
Expand Down

0 comments on commit 8fc1397

Please sign in to comment.