From 56b8e52e656730be6a6de6f1c19a94751c6ec17e Mon Sep 17 00:00:00 2001 From: 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 872c9b18..627414b9 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;