fieldCoordinateSystemTransform: Remove N^2 loop over the field

This commit is contained in:
Henry
2014-09-09 20:50:57 +01:00
committed by Andrew Heather
parent 2fdeb139dc
commit 6a7f2f2969

View File

@ -65,10 +65,7 @@ void Foam::fieldCoordinateSystemTransform::transformField
dimensionedTensor R("R", field.dimensions(), coordSys_.R().R()); 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; Info<< " writing field " << transField.name() << nl << endl;