Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / solvers / incompressible / channelFoam / writeGradP.H
blobafbca9e61d05b9b63d9acda53152b5dc8e3f3711
1     if (runTime.outputTime())
2     {
3         OFstream gradPFile
4         (
5             runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
6         );
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     };