Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required
This commit is contained in:
@ -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)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user