Skip to content

Commit 94530c4

Browse files
authored
Merge pull request #6103 from bangerth/cleanup
Microscropic clean-ups.
2 parents b390df4 + 61a22df commit 94530c4

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

include/aspect/utilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

source/postprocess/gravity_point_values.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

source/postprocess/visualization.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

source/utilities.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)