repo.or.cz
/
OpenFOAM-2.0.x.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git]
/
applications
/
solvers
/
incompressible
/
channelFoam
/
writeGradP.H
blob
afbca9e61d05b9b63d9acda53152b5dc8e3f3711
1
if (runTime.outputTime())
2
{
3
OFstream gradPFile
4
(
5
runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
6
);
7
8
if (gradPFile.good())
9
{
10
gradPFile << gradP << endl;
11
}
12
else
13
{
14
FatalErrorIn(args.executable())
15
<< "Cannot open file "
16
<< runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
17
<< exit(FatalError);
18
};
19
};