From 6a7f2f2969c624b1ddf85a4eeb356a969027a88e Mon Sep 17 00:00:00 2001 From: Henry <Henry> Date: Tue, 9 Sep 2014 20:50:57 +0100 Subject: [PATCH] fieldCoordinateSystemTransform: Remove N^2 loop over the field --- .../fieldCoordinateSystemTransformTemplates.C | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/postProcessing/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransformTemplates.C b/src/postProcessing/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransformTemplates.C index 872c9b189c8..627414b9e4e 100644 --- a/src/postProcessing/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransformTemplates.C +++ b/src/postProcessing/functionObjects/field/fieldCoordinateSystemTransform/fieldCoordinateSystemTransformTemplates.C @@ -65,10 +65,7 @@ void Foam::fieldCoordinateSystemTransform::transformField dimensionedTensor R("R", field.dimensions(), coordSys_.R().R()); - forAll(field, i) - { - Foam::transform(transField, R, transField); - } + Foam::transform(transField, R, transField); Info<< " writing field " << transField.name() << nl << endl; -- GitLab