Commit da47d37b authored by HomePC's avatar HomePC

Debug Pipeline size_t int=>size_t

parent 86e79956
......@@ -1411,7 +1411,7 @@ void LocTraceToTraceMap::RightIPTWLocFacesToTraceInterpMat(
int cnt1 = 0;
// tmp space assuming forward map is of size of trace
Array<OneD, NekDouble> tmp{m_nTracePts};
Array<OneD, NekDouble> tmp{size_t(m_nTracePts)};
Vmath::Gathr(m_LocTraceToTraceMap[dir].size(),
traces.get(),
m_LocTraceToTraceMap[dir].get(),
......@@ -1538,7 +1538,7 @@ void LocTraceToTraceMap::RightIPTWLocFacesToTraceInterpMat(
DNekMatSharedPtr I1 = m_interpTraceI1[dir][i];
Array<OneD, NekDouble>
wsp{m_interpNfaces[dir][i] * fnp0 * tnp1};
wsp{size_t(m_interpNfaces[dir][i] * fnp0 * tnp1)};
Blas::Dgemm('T',
'N',
......
......@@ -530,7 +530,7 @@ namespace Nektar
m_bndConditions
= Array<OneD,SpatialDomains::BoundaryConditionShPtr>(cnt);
m_bndCondBndWeight = Array<OneD, NekDouble> {cnt, 0.0};
m_bndCondBndWeight = Array<OneD, NekDouble> {size_t(cnt), 0.0};
SetBoundaryConditionExpansion(graph1D,bcs,variable,
m_bndCondExpansions,
......
......@@ -149,16 +149,14 @@ namespace Nektar
const NekDouble lhom_z,
SpatialDomains::BoundaryConditions &bcs)
{
int i,n;
// Setup an ExpList1DHomogeneous2D expansion for boundary
// conditions and link to class declared in m_lines.
int nlines = m_lines.size();
size_t nlines = m_lines.size();
const SpatialDomains::BoundaryRegionCollection &bregions = bcs.GetBoundaryRegions();
int nbnd = bregions.size();
size_t nbnd = bregions.size();
m_bndCondExpansions = Array<OneD,MultiRegions::ExpListSharedPtr>(nbnd);
m_bndCondBndWeight = Array<OneD, NekDouble> {nbnd, 0.0};
......@@ -167,9 +165,9 @@ namespace Nektar
m_bndConditions = m_lines[0]->UpdateBndConditions();
for(i = 0; i < nbnd; ++i)
for(int i = 0; i < nbnd; ++i)
{
for(n = 0; n < nlines; ++n)
for(int n = 0; n < nlines; ++n)
{
LinesBndCondExp[n] = m_lines[n]->UpdateBndCondExpansion(i);
}
......
......@@ -261,7 +261,7 @@ namespace Nektar
m_npoints += (*m_exp)[i]->GetTotPoints();
}
m_coeffsToElmt = Array<OneD, pair<int, int> > {m_ncoeffs};
m_coeffsToElmt = Array<OneD, pair<int, int> > {size_t(m_ncoeffs)};
for (int i = 0; i < m_exp->size(); ++i)
{
......
......@@ -70,8 +70,8 @@ namespace Nektar
m_npoints = 1;
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
LocalRegions::PointExpSharedPtr Point = MemoryManager<LocalRegions::PointExp>::AllocateSharedPtr(geom);
(*m_exp).push_back(Point);
......@@ -190,8 +190,8 @@ namespace Nektar
// Set up m_coeffs, m_phys.
if(DeclareCoeffPhysArrays)
{
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs,0.0};
m_phys = Array<OneD, NekDouble> {m_npoints,0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs),0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints),0.0};
}
}
......@@ -252,7 +252,7 @@ namespace Nektar
Array<OneD, NekDouble> &lengthsFwd,
Array<OneD, NekDouble> &lengthsBwd)
{
int e_npoints;
size_t e_npoints;
Array<OneD, NekDouble> locLeng;
Array<OneD, NekDouble> lengintp;
......
......@@ -161,8 +161,8 @@ namespace Nektar
// Allocate storage for data and populate element offset lists.
SetCoeffPhysOffsets();
m_coeffs = Array<OneD, NekDouble>{m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble>{m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble>{size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble>{size_t(m_npoints), 0.0};
CreateCollections(ImpType);
}
......@@ -235,8 +235,8 @@ namespace Nektar
if(DeclareCoeffPhysArrays)
{
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
}
CreateCollections(ImpType);
......@@ -337,8 +337,8 @@ namespace Nektar
if(DeclareCoeffPhysArrays)
{
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
}
CreateCollections(ImpType);
......@@ -416,8 +416,8 @@ namespace Nektar
// Set up m_coeffs, m_phys.
if(DeclareCoeffPhysArrays)
{
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
}
CreateCollections(ImpType);
......@@ -658,8 +658,8 @@ namespace Nektar
// Set up m_coeffs, m_phys.
if(DeclareCoeffPhysArrays)
{
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
}
CreateCollections(ImpType);
......@@ -1120,7 +1120,7 @@ namespace Nektar
Array<OneD, NekDouble> &lengthsFwd,
Array<OneD, NekDouble> &lengthsBwd)
{
int e_npoints;
size_t e_npoints;
Array<OneD, NekDouble> locLeng;
Array<OneD, NekDouble> lengintp;
......
......@@ -108,8 +108,8 @@ namespace Nektar
m_ncoeffs = ncoeffs_per_line*nyzlines;
m_npoints = npoints_per_line*nyzlines;
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
int nel = m_lines[0]->GetExpSize();
m_coeff_offset = Array<OneD,int>(nel*nyzlines);
......
......@@ -222,8 +222,8 @@ namespace Nektar
if (DeclareCoeffPhysArrays)
{
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
}
CreateCollections(ImpType);
......@@ -331,8 +331,8 @@ namespace Nektar
if (DeclareCoeffPhysArrays)
{
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
}
CreateCollections(ImpType);
......@@ -754,8 +754,8 @@ namespace Nektar
// Set up m_coeffs, m_phys.
if(DeclareCoeffPhysArrays)
{
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
}
CreateCollections(ImpType);
......@@ -879,8 +879,8 @@ namespace Nektar
// Set up m_coeffs, m_phys and offset arrays.
SetCoeffPhysOffsets();
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
CreateCollections(ImpType);
}
......
......@@ -76,8 +76,8 @@ namespace Nektar
if (DeclareCoeffPhysArrays)
{
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
}
CreateCollections(ImpType);
......@@ -171,8 +171,8 @@ namespace Nektar
SetCoeffPhysOffsets();
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
CreateCollections(ImpType);
}
......@@ -297,8 +297,8 @@ namespace Nektar
SetCoeffPhysOffsets();
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
CreateCollections(ImpType);
}
......@@ -425,8 +425,8 @@ namespace Nektar
SetCoeffPhysOffsets();
// Set up m_coeffs, m_phys.
m_coeffs = Array<OneD, NekDouble> {m_ncoeffs, 0.0};
m_phys = Array<OneD, NekDouble> {m_npoints, 0.0};
m_coeffs = Array<OneD, NekDouble> {size_t(m_ncoeffs), 0.0};
m_phys = Array<OneD, NekDouble> {size_t(m_npoints), 0.0};
CreateCollections(ImpType);
}
......
Markdown is supported
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