Removed debugging in (Dimensioned)Field

- it made problems in undefined reference to instantiations with triSurfaceGeoMesh during compilation of applications
This commit is contained in:
Gregor Weiss 2023-09-26 15:57:01 +02:00
parent 12bad5958e
commit 672e215a78
8 changed files with 0 additions and 44 deletions

View file

@ -614,16 +614,12 @@ $(meshTools)/meshTools.C
$(meshTools)/matchPoints.C $(meshTools)/matchPoints.C
$(meshTools)/mergePoints.C $(meshTools)/mergePoints.C
fields/DimensionedFields/DimensionedField/DebugIODimensionedField.C
fields/UniformDimensionedFields/uniformDimensionedFields.C fields/UniformDimensionedFields/uniformDimensionedFields.C
fields/cloud/cloud.C fields/cloud/cloud.C
fields/cloudDistribute/cloudDistribute.C fields/cloudDistribute/cloudDistribute.C
Fields = fields/Fields Fields = fields/Fields
$(Fields)/Field/DebugIOField.C
$(Fields)/labelField/labelField.C $(Fields)/labelField/labelField.C
$(Fields)/scalarField/scalarField.C $(Fields)/scalarField/scalarField.C
$(Fields)/vectorField/vectorField.C $(Fields)/vectorField/vectorField.C

View file

@ -1,3 +0,0 @@
#include "DimensionedField.H"
defineTypeNameAndDebug(Foam::DebugIODimensionedFieldName, 0);

View file

@ -48,8 +48,6 @@ SourceFiles
namespace Foam namespace Foam
{ {
TemplateName(DebugIODimensionedField);
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
template<class Type, class GeoMesh> class DimensionedField; template<class Type, class GeoMesh> class DimensionedField;
@ -74,7 +72,6 @@ template<class Type, class GeoMesh> Ostream& operator<<
template<class Type, class GeoMesh> template<class Type, class GeoMesh>
class DimensionedField class DimensionedField
: :
public DebugIODimensionedFieldName,
public regIOobject, public regIOobject,
public Field<Type> public Field<Type>
{ {

View file

@ -76,11 +76,6 @@ bool DimensionedField<Type, GeoMesh>::writeData
const word& fieldDictEntry const word& fieldDictEntry
) const ) const
{ {
if (debug)
{
Pout<< "dimensions = " << endl;
}
os.writeKeyword("dimensions") << dimensions() << token::END_STATEMENT os.writeKeyword("dimensions") << dimensions() << token::END_STATEMENT
<< nl << nl; << nl << nl;

View file

@ -1,3 +0,0 @@
#include "Field.H"
defineTypeNameAndDebug(Foam::DebugIOFieldName, 0);

View file

@ -212,14 +212,6 @@ Field<Type>::Field
const label s const label s
) )
{ {
if (debug)
{
Info<< "Field<Type>::Field"
<< "(const word& keyword, const dictionary& dict, const label s)"
<< " : keyword = " << keyword
<< endl;
}
if (s) if (s)
{ {
ITstream& is = dict.lookup(keyword); ITstream& is = dict.lookup(keyword);

View file

@ -51,8 +51,6 @@ SourceFiles
namespace Foam namespace Foam
{ {
TemplateName(DebugIOField);
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
@ -79,7 +77,6 @@ class dictionary;
template<class Type> template<class Type>
class Field class Field
: :
public DebugIOFieldName,
public refCount, public refCount,
public List<Type> public List<Type>
{ {

View file

@ -58,14 +58,6 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::readField
const dictionary& fieldDict const dictionary& fieldDict
) )
{ {
if (debug)
{
Info<< "Foam::GeometricField<Type, PatchField, GeoMesh>"
<< "::readField(const dictionary& fieldDict)"
<< "\n dict =\n" << fieldDict << nl
<< endl;
}
DimensionedField<Type, GeoMesh>::readField(fieldDict, "internalField"); DimensionedField<Type, GeoMesh>::readField(fieldDict, "internalField");
tmp<GeometricBoundaryField> tboundaryField tmp<GeometricBoundaryField> tboundaryField
@ -104,13 +96,6 @@ Foam::tmp
> >
Foam::GeometricField<Type, PatchField, GeoMesh>::readField(Istream& is) Foam::GeometricField<Type, PatchField, GeoMesh>::readField(Istream& is)
{ {
if (debug)
{
Info<< "Foam::GeometricField<Type, PatchField, GeoMesh>"
<< "::readField(Istream& is) with stream format " << is.format()
<< endl;
}
if (is.version() < 2.0) if (is.version() < 2.0)
{ {
FatalIOErrorIn FatalIOErrorIn