Skip to content

Commit 8fd5114

Browse files
authored
Merge pull request #6735 from danieldouglas92/output_topo_dir
Place Postprocessor Files Within Respective "postprocessor_output" Subdirectories
2 parents 120b4ea + 2d5edeb commit 8fd5114

File tree

19 files changed

+6
-1
lines changed

19 files changed

+6
-1
lines changed

source/postprocess/topography.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,13 @@ namespace aspect
136136
return std::pair<std::string, std::string> ("Topography min/max:",
137137
output_stats.str());
138138

139+
140+
Utilities::create_directory (this->get_output_directory() + "topography/",
141+
this->get_mpi_communicator(),
142+
/* silent=*/true);
143+
139144
std::string filename = this->get_output_directory() +
140-
"topography." +
145+
"topography/topography." +
141146
Utilities::int_to_string(this->get_timestep_number(), 5);
142147
if (this->get_parameters().run_postprocessors_on_nonlinear_iterations)
143148
filename.append("." + Utilities::int_to_string (this->get_nonlinear_iteration(), 4));

0 commit comments

Comments
 (0)