8 inline void verbose_inform(std::string prefix, std::string label =
"", std::string suffix =
"") {
11 std::string output = std::string(
"*** [YAKL_VERBOSE] ") + prefix;
12 if (label !=
"") output += std::string(
" (label: \"") + label + std::string(
"\")");
13 if (suffix !=
"") output += std::string(
"; ") + suffix;
19 MPI_Initialized(&is_initialized);
20 if (is_initialized) { MPI_Comm_rank(MPI_COMM_WORLD, &rank); }
24 #ifdef YAKL_VERBOSE_FILE
26 std::string fname = std::string(
"yakl_verbose_output_task_") + std::to_string(rank) + std::string(
".log");
27 myfile.open(fname , std::ofstream::out | std::ofstream::app);
28 myfile << output << std::endl;
33 if (rank == 0) std::cout << output << std::endl;