modified screen output

This commit is contained in:
Michael Krayer 2021-01-19 13:22:13 +01:00
parent 3c5f24de27
commit 0b775a076c
1 changed files with 2 additions and 2 deletions

View File

@ -49,11 +49,11 @@ int main(int argc,char *argv[])
else
str_rank = to_string(rank);
replaceAll(str_cmd,"{}",str_rank);
cerr << "Rank " << rank << " is executing: " << str_cmd << endl;
// Run command and return exit code
int exitcode = system(str_cmd.c_str());
cerr << "Rank " << rank << " finished with exitcode " << exitcode << endl;
if(exitcode!=0)
cerr << "Command '"<< str_cmd << "' executed by rank " << rank << " resulted in non-zero exit code: " << exitcode << endl;
// Finalize
MPI_Finalize();