mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fieldCoordinateSystemTransform: Remove N^2 loop over the field
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user