COMP: fftw needs int (not long) for its dimensionality (issue #175)

- explicitly use List<int> instead List<label> for API compatibility,
  even when 64-bit labels are in use.
This commit is contained in:
Mark Olesen
2016-07-07 11:20:28 +02:00
parent e799329515
commit 5f49df4a0a
5 changed files with 19 additions and 16 deletions

View File

@ -35,7 +35,7 @@ inline Foam::label Foam::Kmesh::index
const label i,
const label j,
const label k,
const labelList& nn
const UList<int>& nn
)
{
return (k + j*nn[2] + i*nn[1]*nn[2]);

View File

@ -57,7 +57,7 @@ class Kmesh
vector l_;
//- Multi-dimensional addressing array
labelList nn_;
List<int> nn_;
//- Maximum wavenumber
scalar kmax_;
@ -71,7 +71,7 @@ class Kmesh
const label i,
const label j,
const label k,
const labelList& nn
const UList<int>& nn
);
@ -92,7 +92,7 @@ public:
return l_;
}
const labelList& nn() const
const List<int>& nn() const
{
return nn_;
}