Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required

This commit is contained in:
Henry Weller
2016-03-22 17:46:52 +00:00
parent 59f7f1ef0e
commit fa8929df6d
82 changed files with 224 additions and 224 deletions

View File

@ -182,7 +182,7 @@ void Foam::fv::rotorDiskSource::writeField
IOobject::NO_WRITE
),
mesh_,
dimensioned<Type>("zero", dimless, pTraits<Type>::zero)
dimensioned<Type>("zero", dimless, Zero)
)
);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -157,7 +157,7 @@ void Foam::fv::SemiImplicitSource<Type>::addSup
(
"zero",
eqn.dimensions()/dimVolume,
pTraits<Type>::zero
Zero
),
false
);