fieldCoordinateSystemTransform: Remove N^2 loop over the field
This commit is contained in:
parent
7b27df3002
commit
56b8e52e65
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue