ENH: Updated info message

This commit is contained in:
andy
2013-01-14 12:49:31 +00:00
parent df9e072415
commit d4787dce18

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -53,16 +53,14 @@ Foam::noiseFFT::noiseFFT(const fileName& pFileName, const label skip)
scalarField(), scalarField(),
deltat_(0.0) deltat_(0.0)
{ {
// Construct control dictionary // Construct pressure data file
IFstream pFile(pFileName); IFstream pFile(pFileName);
// Check pFile stream is OK // Check pFile stream is OK
if (!pFile.good()) if (!pFile.good())
{ {
FatalErrorIn FatalErrorIn("noiseFFT::noiseFFT(const scalar, const scalarField&)")
( << "Cannot read file " << pFileName
"noiseFFT::noiseFFT(const fileName&, const label)"
) << "Cannot read file " << pFileName
<< exit(FatalError); << exit(FatalError);
} }
@ -76,7 +74,10 @@ Foam::noiseFFT::noiseFFT(const fileName& pFileName, const label skip)
if (!pFile.good() || pFile.eof()) if (!pFile.good() || pFile.eof())
{ {
FatalErrorIn("noiseFFT::noiseFFT(const fileName&, const label)") FatalErrorIn
(
"noiseFFT::noiseFFT(const scalar, const scalarField&)"
)
<< "Number of points in file " << pFileName << "Number of points in file " << pFileName
<< " is less than the number to be skipped = " << skip << " is less than the number to be skipped = " << skip
<< exit(FatalError); << exit(FatalError);