mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Better stdout/err debug
This commit is contained in:
parent
07009c569a
commit
f7cbf82c04
@ -243,6 +243,12 @@ void Grid_init(int *argc,char ***argv)
|
|||||||
fname<<CartesianCommunicator::RankWorld();
|
fname<<CartesianCommunicator::RankWorld();
|
||||||
fp=freopen(fname.str().c_str(),"w",stdout);
|
fp=freopen(fname.str().c_str(),"w",stdout);
|
||||||
assert(fp!=(FILE *)NULL);
|
assert(fp!=(FILE *)NULL);
|
||||||
|
|
||||||
|
std::ostringstream ename;
|
||||||
|
ename<<"Grid.stderr.";
|
||||||
|
ename<<CartesianCommunicator::RankWorld();
|
||||||
|
fp=freopen(ename.str().c_str(),"w",stderr);
|
||||||
|
assert(fp!=(FILE *)NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////
|
////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user