BUG: Corrections to commit 1f826361 for issue #306

This commit is contained in:
Andrew Heather
2016-11-22 15:12:10 +00:00
parent 1f826361c6
commit 558006afd2
2 changed files with 1 additions and 14 deletions

View File

@ -61,7 +61,7 @@ void surfaceNoise::initialise(const dictionary& dict)
readerPtr_.reset(surfaceReader::New(readerType, inputFileName_).ptr());
// Find the index of the pressure data
const word pName(dict.lookupOrDefault<word>("pName", "p"));
const word pName(dict.lookupOrDefault<word>("p", "p"));
const List<word> fieldNames(readerPtr_->fieldNames(0));
pIndex_ = findIndex(fieldNames, pName);
if (pIndex_ == -1)

View File

@ -48,19 +48,6 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 5;
functions
{
mag(U)
{
type mag;
libs ( "libfieldFunctionObjects.so" );
field U;
executeControl writeTime;
writeControl writeTime;
fields 1 ( U );
result myMagU;
}
}
// ************************************************************************* //