ENH: use tmp field factory methods [12] (#2723)

- applications
This commit is contained in:
Mark Olesen
2023-10-08 18:35:04 +02:00
parent ec2b1be8c5
commit 8b73d06898
32 changed files with 171 additions and 387 deletions

View File

@ -62,8 +62,8 @@ tmp<pointField> avg
{
const labelListList& pointEdges = s.pointEdges();
tmp<pointField> tavg(new pointField(s.nPoints(), Zero));
pointField& avg = tavg.ref();
auto tavg = tmp<pointField>::New(s.nPoints(), Zero);
auto& avg = tavg.ref();
forAll(pointEdges, vertI)
{