COMP: app/test: make test apps compile

This commit is contained in:
mattijs
2011-03-23 16:18:06 +00:00
parent ac4aff42b5
commit 7faf1a5205
3 changed files with 9 additions and 5 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,7 +56,10 @@ public:
Info<<"delete Scalar: " << data_ << endl; Info<<"delete Scalar: " << data_ << endl;
} }
autoPtr<Scalar> clone() const; autoPtr<Scalar> clone() const
{
return autoPtr<Scalar>(new Scalar(data_));
}
friend Ostream& operator<<(Ostream& os, const Scalar& val) friend Ostream& operator<<(Ostream& os, const Scalar& val)
{ {

View File

@ -8,4 +8,5 @@ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lradiationModels \ -lradiationModels \
-lthermophysicalFunctions -lthermophysicalFunctions \
-lregionModels

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -55,7 +55,7 @@ int main(int argc, char *argv[])
Pout<< "Starting particles:" << particles.size() << endl; Pout<< "Starting particles:" << particles.size() << endl;
Pout<< "Adding a particle." << endl; Pout<< "Adding a particle." << endl;
particles.addParticle(new passiveParticle(particles, vector::zero, -1)); particles.addParticle(new passiveParticle(mesh, vector::zero, -1));
forAllConstIter(passiveParticleCloud, particles, iter) forAllConstIter(passiveParticleCloud, particles, iter)
{ {