OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

writeGradP.H

Go to the documentation of this file.
00001     if (runTime.outputTime())
00002     {
00003         OFstream gradPFile
00004         (
00005             runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
00006         );
00007 
00008         if(gradPFile.good())
00009         {
00010             gradPFile << gradP << endl;
00011         }
00012         else
00013         {
00014             FatalErrorIn(args.executable())
00015                 << "Cannot open file "
00016                 << runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
00017                 << exit(FatalError);
00018         };
00019     };
Copyright © 2000-2009 OpenCFD Ltd