From 35c9d7bbd5d3db55b623380a6894ed5a409459a2 Mon Sep 17 00:00:00 2001 From: henry Date: Fri, 20 Nov 2009 12:40:19 +0000 Subject: [PATCH] Corrected test applications. --- .../DimensionedField/DimensionedFieldTest.C | 133 ------------------ applications/test/DimensionedField/Make/files | 3 - .../test/DimensionedField/Make/options | 2 - applications/test/HashTable3/hashTableTest3.C | 3 +- applications/test/Matrix/MatrixTest.C | 14 +- applications/test/ODETest/ODETest.C | 2 +- applications/test/PtrList/PtrListTest.C | 2 + .../UIndirectListTest/UIndirectListTest.C | 8 +- applications/test/parallel/parallelTest.C | 4 +- .../test/slicedField/slicedFieldTest.C | 14 +- .../testPointEdgeWave/testPointEdgeWave.C | 6 +- applications/test/volField/volFieldTest.C | 18 +-- .../containers/HashTables/HashSet/HashSet.C | 4 +- src/OpenFOAM/matrices/Matrix/Matrix.C | 64 ++++----- src/OpenFOAM/matrices/Matrix/Matrix.H | 4 +- 15 files changed, 68 insertions(+), 213 deletions(-) delete mode 100644 applications/test/DimensionedField/DimensionedFieldTest.C delete mode 100644 applications/test/DimensionedField/Make/files delete mode 100644 applications/test/DimensionedField/Make/options diff --git a/applications/test/DimensionedField/DimensionedFieldTest.C b/applications/test/DimensionedField/DimensionedFieldTest.C deleted file mode 100644 index bc1f875dbd..0000000000 --- a/applications/test/DimensionedField/DimensionedFieldTest.C +++ /dev/null @@ -1,133 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -\*---------------------------------------------------------------------------*/ - -#include "argList.H" -#include "Time.H" -#include "DimensionedFields.H" -#include "DimensionedSphericalTensorField.H" -#include "vector.H" -#include "tensor.H" -#include "GeoMesh.H" - -using namespace Foam; - -namespace Foam -{ - -class vMesh -{ - -public: - - vMesh() - {} - - label size() const - { - return 10; - } -}; - -}; - -template<> -const word Foam::DimensionedField >::typeName -( - "dimenionedScalarField" -); - -template<> -const word Foam::DimensionedField >::typeName -( - "dimenionedVectorField" -); - -template<> -const word Foam::DimensionedField >::typeName -( - "dimenionedTensorField" -); - -template<> -const word Foam::DimensionedField >::typeName -( - "dimenionedSphericalTensorField" -); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// Main program: - -int main(int argc, char *argv[]) -{ - -# include "setRootCase.H" -# include "createTime.H" - - vMesh vm; - - DimensionedField > dsf - ( - IOobject - ( - "dsf", - runTime.timeName(), - runTime, - IOobject::MUST_READ, - IOobject::NO_WRITE - ), - vm - ); - - Info<< dsf << endl; - dsf += dsf; - dsf -= dimensionedScalar("5", dsf.dimensions(), 5.0); - Info<< dsf << endl; - - Info<< sqr(dsf + dsf) - sqr(dsf + dsf) << endl; - - DimensionedField > dvf - ( - IOobject - ( - "dvf", - runTime.timeName(), - runTime, - IOobject::MUST_READ, - IOobject::NO_WRITE - ), - vm - ); - - Info<< (dvf ^ (dvf ^ dvf)) << endl; - - Info << "End\n" << endl; - - return 0; -} - - -// ************************************************************************* // diff --git a/applications/test/DimensionedField/Make/files b/applications/test/DimensionedField/Make/files deleted file mode 100644 index 02c479015e..0000000000 --- a/applications/test/DimensionedField/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -DimensionedFieldTest.C - -EXE = $(FOAM_USER_APPBIN)/DimensionedFieldTest diff --git a/applications/test/DimensionedField/Make/options b/applications/test/DimensionedField/Make/options deleted file mode 100644 index 6a9e9810b3..0000000000 --- a/applications/test/DimensionedField/Make/options +++ /dev/null @@ -1,2 +0,0 @@ -/* EXE_INC = -I$(LIB_SRC)/cfdTools/include */ -/* EXE_LIBS = -lfiniteVolume */ diff --git a/applications/test/HashTable3/hashTableTest3.C b/applications/test/HashTable3/hashTableTest3.C index 910e4f2290..6229e6a304 100644 --- a/applications/test/HashTable3/hashTableTest3.C +++ b/applications/test/HashTable3/hashTableTest3.C @@ -33,7 +33,6 @@ Description #include "HashPtrTable.H" #include "Map.H" #include "StaticHashTable.H" -#include "HashTbl.H" #include "cpuTime.H" using namespace Foam; @@ -53,7 +52,7 @@ int main(int argc, char *argv[]) // Map