File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -672,7 +672,7 @@ namespace aspect
672672 */
673673 void create_directory (const std::string &pathname,
674674 const MPI_Comm comm,
675- bool silent);
675+ const bool silent);
676676
677677 /* *
678678 * A namespace defining the cubic spline interpolation that can be used
Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ namespace aspect
697697 void
698698 GravityPointValues<dim>::parse_parameters (ParameterHandler &prm)
699699 {
700- std::string gravity_subdirectory = this ->get_output_directory () + " output_gravity/" ;
700+ const std::string gravity_subdirectory = this ->get_output_directory () + " output_gravity/" ;
701701 Utilities::create_directory (gravity_subdirectory,
702702 this ->get_mpi_communicator (),
703703 true );
Original file line number Diff line number Diff line change @@ -1335,7 +1335,7 @@ namespace aspect
13351335 ExcMessage (" No postprocessors registered!?" ));
13361336 std::vector<std::string> viz_names;
13371337
1338- std::string visualization_subdirectory = this ->get_output_directory () + " solution/" ;
1338+ const std::string visualization_subdirectory = this ->get_output_directory () + " solution/" ;
13391339 Utilities::create_directory (visualization_subdirectory,
13401340 this ->get_mpi_communicator (),
13411341 true );
Original file line number Diff line number Diff line change @@ -1658,7 +1658,6 @@ namespace aspect
16581658 int mkdir_return_value;
16591659 if ((mkdir_return_value = mkdir (subdir.c_str (),mode)) && (errno != EEXIST))
16601660 return mkdir_return_value;
1661-
16621661 }
16631662
16641663 return 0 ;
@@ -1668,7 +1667,7 @@ namespace aspect
16681667
16691668 void create_directory (const std::string &pathname,
16701669 const MPI_Comm comm,
1671- bool silent)
1670+ const bool silent)
16721671 {
16731672 // verify that the output directory actually exists. if it doesn't, create
16741673 // it on processor zero
@@ -1689,7 +1688,6 @@ namespace aspect
16891688 << std::endl;
16901689
16911690 error = Utilities::mkdirp (pathname, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
1692-
16931691 }
16941692 else
16951693 {
You can’t perform that action at this time.
0 commit comments