setPrefix
void setPrefix(const std::string& prefix);
Sets the Output's prefix.
Parameters
- prefix (std::string) Prefix to be prepended to all strings emitted by calls to
debug(),verbose(),fatal()andoutput()(depends on which variant ofoutput()is used). No space will be inserted between the prepended prefix string and the normal output string. The following escape codes may be used in prefixes:\@fName of the file in which output call was made.\@lLine number in the file in which output call was made.\@pName of the function from which output call was made.\@rMPI rank of the calling process. Will be empty if MPI_COMM_WORLD size is 1.\@RMPI rank of the calling process. Will be 0 if MPI_COMM_WORLD size is 1.\@iThread Id of the calling process. Will be empty if number of threads is 1.\@IThread Id of the calling process. Will be 0 if number of threads is 1.\@xRank information of the calling process. Will be empty if number of MPI ranks and number of threads are both 1. Same as [\@r:\@i]\@XRank information of the calling process. Will be [0.0] if number of MPI ranks and number of threads are both 1. Same as [\@R:\@I]\@tSimulation time. Will be the raw simulation cycle time.
- returns none
Example
out->setPrefix("All output begins with this ");
Header
#include <sst/core/output.h>