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 aa89254c79
commit 730f89dc9d
82 changed files with 224 additions and 224 deletions

View File

@ -1284,7 +1284,7 @@ Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToSource
new Field<Type>
(
srcAddress_.size(),
pTraits<Type>::zero
Zero
)
);
@ -1329,7 +1329,7 @@ Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToTarget
new Field<Type>
(
tgtAddress_.size(),
pTraits<Type>::zero
Zero
)
);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -70,7 +70,7 @@ void Foam::mappedPatchBase::distribute
map().constructMap(),
lst,
cop,
pTraits<Type>::zero
Type(Zero)
);
}
}
@ -126,7 +126,7 @@ void Foam::mappedPatchBase::reverseDistribute
map().subMap(),
lst,
cop,
pTraits<Type>::zero
Type(Zero)
);
break;
}