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

@ -182,7 +182,7 @@ void subsetVolFields
if (addedPatches.found(patchI))
{
tSubFld.ref().boundaryField()[patchI] ==
pTraits<typename GeoField::value_type>::zero;
typename GeoField::value_type(Zero);
}
}
@ -234,7 +234,7 @@ void subsetSurfaceFields
if (addedPatches.found(patchI))
{
tSubFld.ref().boundaryField()[patchI] ==
pTraits<typename GeoField::value_type>::zero;
typename GeoField::value_type(Zero);
}
}