Skip to content
Snippets Groups Projects
Commit ca0bdb6f authored by Andrew Heather's avatar Andrew Heather Committed by Mark OLESEN
Browse files

COMP: Updated for 64 bit labels

parent 8a576b27
No related merge requests found
......@@ -62,7 +62,7 @@ void Foam::functionObjects::energySpectrum::calcAndWriteSpectrum
const vectorField& C,
const vector& c0,
const vector& deltaC,
const Vector<label>& N,
const Vector<int>& N,
const scalar kappaNorm
)
{
......@@ -72,7 +72,7 @@ void Foam::functionObjects::energySpectrum::calcAndWriteSpectrum
fft::forwardTransform
(
ReComplexField(U),
List<label>({N.x(), N.y(), N.z()})
List<int>({N.x(), N.y(), N.z()})
)
/scalar(cmptProduct(N))
);
......@@ -159,7 +159,7 @@ bool Foam::functionObjects::energySpectrum::read(const dictionary& dict)
const vector L(meshBb.max() - meshBb.min());
const vector nCellXYZ(cmptDivide(L, cellBb.max() - cellBb.min()));
N_ = Vector<label>
N_ = Vector<int>
(
round(nCellXYZ.x()),
round(nCellXYZ.z()),
......
......@@ -96,7 +96,7 @@ protected:
word UName_;
//- Number of cells in I-J-K directions
Vector<label> N_;
Vector<int> N_;
//- Reference point
vector c0_;
......@@ -121,7 +121,7 @@ protected:
const vectorField& C,
const vector& c0,
const vector& deltaC,
const Vector<label>& N,
const Vector<int>& N,
const scalar kappaNorm
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment