19 lines
478 B
C++
19 lines
478 B
C++
if (runTime.outputTime())
|
|
{
|
|
OFstream gradPFile
|
|
(
|
|
runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
|
|
);
|
|
|
|
if(gradPFile.good())
|
|
{
|
|
gradPFile << gradP << endl;
|
|
}
|
|
else
|
|
{
|
|
FatalErrorIn(args.executable())
|
|
<< "Cannot open file "
|
|
<< runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
|
|
<< exit(FatalError);
|
|
};
|
|
};
|