[cig-commits] [commit] master: Be more verbose in a warning message. (8da6b69)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Wed Jul 30 06:55:09 PDT 2014
Repository : https://github.com/geodynamics/aspect
On branch : master
Link : https://github.com/geodynamics/aspect/compare/00ccc11ac992c96b6dd25ec3d78345eb67e3001d...abae02cb1cb943692c91540d97c5066f3d74a54b
>---------------------------------------------------------------
commit 8da6b6979fc51f6530784b5591da4e6a2e9e81cb
Author: Wolfgang Bangerth <bangerth at math.tamu.edu>
Date: Thu Jul 24 17:02:11 2014 -0500
Be more verbose in a warning message.
In order to track down what's happening, knowing which file we were trying to write to turned out to be about as useful as knowing the processor number.
>---------------------------------------------------------------
8da6b6979fc51f6530784b5591da4e6a2e9e81cb
source/postprocess/visualization.cc | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/source/postprocess/visualization.cc b/source/postprocess/visualization.cc
index 71eed9f..d0d523b 100644
--- a/source/postprocess/visualization.cc
+++ b/source/postprocess/visualization.cc
@@ -510,13 +510,14 @@ namespace aspect
// assemble the error message completely, and then output it atomically
if (tmp_file_desc == -1)
{
- std::string x = std::string(
- "***** WARNING: could not create temporary file, will "
- "output directly to final location. This may negatively "
- "affect performance. (On processor ")
- + Utilities::int_to_string(
- Utilities::MPI::this_mpi_process (MPI_COMM_WORLD))
- + ".)\n";
+ const std::string x = ("***** WARNING: could not create temporary file <"
+ +
+ tmp_filename
+ +
+ ">, will output directly to final location. This may negatively "
+ "affect performance. (On processor "
+ + Utilities::int_to_string(Utilities::MPI::this_mpi_process (MPI_COMM_WORLD))
+ + ".)\n");
std::cerr << x << std::flush;
More information about the CIG-COMMITS
mailing list