Skip to content

Commit

Permalink
Fix hdf5 output
Browse files Browse the repository at this point in the history
  • Loading branch information
gassmoeller committed Oct 1, 2024
1 parent 93751ae commit 9be3e28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/aspect/postprocess/particles.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ namespace aspect
* dimensions and names of data written at all steps during the
* simulation.
*/
std::vector<XDMFEntry> xdmf_entries;
std::map<std::string,std::vector<XDMFEntry>> xdmf_entries;

/**
* VTU file output supports grouping files from several CPUs into one
Expand Down
4 changes: 2 additions & 2 deletions source/postprocess/particles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ namespace aspect
particle_file_name,
time_in_years_or_seconds,
this->get_mpi_communicator());
xdmf_entries.push_back(new_xdmf_entry);
data_out.write_xdmf_file(xdmf_entries, this->get_output_directory() + xdmf_filename,
xdmf_entries[particles_output_base_name].push_back(new_xdmf_entry);
data_out.write_xdmf_file(xdmf_entries[particles_output_base_name], this->get_output_directory() + xdmf_filename,
this->get_mpi_communicator());
}
else if (output_format == "vtu")
Expand Down

0 comments on commit 9be3e28

Please sign in to comment.