Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / incompressible / channelFoam / writeGradP.H
blobc82dd534740b6c8db6258f572768b5c081a7e735
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     };