From ea67afaf9653b58019c3b7b9ff2c3c9ae8d2a59c Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 18 Mar 2011 14:54:11 +0000 Subject: [PATCH] ENH: codedFixedValue : added printing --- .../db/dictionary/functionEntries/codeStream/codeStream.C | 3 +++ src/finiteVolume/Make/files | 1 - .../derived/codedFixedValue/codedFixedValueFvPatchField.C | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C b/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C index f6c697ca28..89785d5130 100644 --- a/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C +++ b/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C @@ -70,6 +70,9 @@ bool Foam::functionEntries::codeStream::execute Istream& is ) { + Info<< "Using #codeStream at line " << is.lineNumber() + << " in file " << parentDict.name() << endl; + dynamicCode::checkSecurity ( "functionEntries::codeStream::execute(..)", diff --git a/src/finiteVolume/Make/files b/src/finiteVolume/Make/files index 37cfc28376..0ff3e598d9 100644 --- a/src/finiteVolume/Make/files +++ b/src/finiteVolume/Make/files @@ -114,7 +114,6 @@ derivedFvPatchFields = $(fvPatchFields)/derived $(derivedFvPatchFields)/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.C $(derivedFvPatchFields)/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C $(derivedFvPatchFields)/advective/advectiveFvPatchFields.C -/* $(derivedFvPatchFields)/codedFixedValue/codedFixedValueFvPatchScalarField.C */ $(derivedFvPatchFields)/codedFixedValue/codedFixedValueFvPatchFields.C $(derivedFvPatchFields)/directMappedField/directMappedFieldFvPatchFields.C $(derivedFvPatchFields)/directMappedFixedInternalValue/directMappedFixedInternalValueFvPatchFields.C diff --git a/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C index 41a3a18891..d3f13fd7a7 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C @@ -238,6 +238,10 @@ void Foam::codedFixedValueFvPatchField::createLibrary // Write files for new library if (!dynCode.upToDate(context)) { + Info<< "Using dynamicCode for patch " << this->patch().name() + << " on field " << this->dimensionedInternalField().name() + << endl; + // filter with this context dynCode.reset(context);