OpenFOAM libraries: Updated to use the new const-safe tmp
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
EXE_INC = \
|
||||
EXE_INC = -DCONST_TMP \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude
|
||||
|
||||
LIB_LIBS = \
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -191,7 +191,7 @@ tmp<complexField> fft::forwardTransform
|
||||
{
|
||||
tmp<complexField> tfftField(new complexField(tfield));
|
||||
|
||||
transform(tfftField(), nn, FORWARD_TRANSFORM);
|
||||
transform(tfftField.ref(), nn, FORWARD_TRANSFORM);
|
||||
|
||||
tfield.clear();
|
||||
|
||||
@ -207,7 +207,7 @@ tmp<complexField> fft::reverseTransform
|
||||
{
|
||||
tmp<complexField> tifftField(new complexField(tfield));
|
||||
|
||||
transform(tifftField(), nn, REVERSE_TRANSFORM);
|
||||
transform(tifftField.ref(), nn, REVERSE_TRANSFORM);
|
||||
|
||||
tfield.clear();
|
||||
|
||||
@ -231,7 +231,7 @@ tmp<complexVectorField> fft::forwardTransform
|
||||
|
||||
for (direction cmpt=0; cmpt<vector::nComponents; cmpt++)
|
||||
{
|
||||
tfftVectorField().replace
|
||||
tfftVectorField.ref().replace
|
||||
(
|
||||
cmpt,
|
||||
forwardTransform(tfield().component(cmpt), nn)
|
||||
@ -260,7 +260,7 @@ tmp<complexVectorField> fft::reverseTransform
|
||||
|
||||
for (direction cmpt=0; cmpt<vector::nComponents; cmpt++)
|
||||
{
|
||||
tifftVectorField().replace
|
||||
tifftVectorField.ref().replace
|
||||
(
|
||||
cmpt,
|
||||
reverseTransform(tfield().component(cmpt), nn)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -140,7 +140,7 @@ Foam::tmp<Foam::scalarField> Foam::noiseFFT::window
|
||||
}
|
||||
|
||||
tmp<scalarField> tpw(new scalarField(N));
|
||||
scalarField& pw = tpw();
|
||||
scalarField& pw = tpw.ref();
|
||||
|
||||
label offset = ni*windowOffset;
|
||||
|
||||
@ -193,7 +193,7 @@ Foam::tmp<Foam::scalarField> Foam::noiseFFT::Pf
|
||||
scalarField::subField(tPn2(), tPn2().size()/2)
|
||||
)
|
||||
);
|
||||
scalarField& Pn = tPn();
|
||||
scalarField& Pn = tPn.ref();
|
||||
|
||||
Pn *= 2.0/sqrt(scalar(tPn2().size()));
|
||||
Pn[0] /= 2.0;
|
||||
|
||||
Reference in New Issue
Block a user