mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required
This commit is contained in:
@ -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
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user