modified screen output
This commit is contained in:
parent
3c5f24de27
commit
0b775a076c
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue