Skip to content

Commit

Permalink
Fix field name and output filename
Browse files Browse the repository at this point in the history
  • Loading branch information
gassmoeller committed Mar 18, 2024
1 parent 77117b4 commit 70d2c74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/postprocess/dynamic_topography.cc
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ namespace aspect
{
output << "# "
<< ((dim==2)? "x y " : "x y z ")
<< " heat_flux_" << boundary_name << std::endl;
<< "dynamic_topography_" << boundary_name << std::endl;
}

for (unsigned int i=0; i<stored_values.size(); ++i)
Expand Down
5 changes: 4 additions & 1 deletion source/postprocess/heat_flux_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,10 @@ namespace aspect
this->get_geometry_model().translate_id_to_symbol_name(boundary_id) == "bottom")
output_to_file(boundary_id, heat_flux_and_area);

const std::string placeholder_name = this->get_output_directory() + "heat_flux." + Utilities::int_to_string(this->get_timestep_number(), 5);
std::string placeholder_name = this->get_output_directory() + "heat_flux." + Utilities::int_to_string(this->get_timestep_number(), 5);
if (this->get_parameters().run_postprocessors_on_nonlinear_iterations)
placeholder_name.append("." + Utilities::int_to_string (this->get_nonlinear_iteration(), 4));

return std::pair<std::string,std::string>("Writing heat flux map",
placeholder_name);
}
Expand Down

0 comments on commit 70d2c74

Please sign in to comment.