Commit 558006af authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: Corrections to commit 1f826361 for issue #306

parent 1f826361
......@@ -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)
......
......@@ -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;
}
}
// ************************************************************************* //
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment