Commit ac367231 authored by Dave Moxey's avatar Dave Moxey
Browse files

Fixed first few compiler warnings.

parent 1de9470d
......@@ -323,7 +323,14 @@ namespace Nektar
static const int operatorID = 7;
AnalyticExpression(const boost_spirit::symbols<NekDouble>* constants, const std::vector<std::string>& variables) :
boost_spirit::grammar<AnalyticExpression>(), constants_p(constants), variables_p(variables) {}
boost_spirit::grammar<AnalyticExpression>(), constants_p(constants), variables_p(variables) {}
// Trivial constructor to avoid compiler warning with
// constants_p.
~AnalyticExpression()
{
constants_p = NULL;
}
template <typename ScannerT>
struct definition
......
......@@ -86,7 +86,7 @@ namespace Nektar
{
// We can do the new in the constructor list because the thread specific
// pointer doesn't have a supporting constructor.
m_pool = new boost::pool<>(ByteSize);
m_pool = new boost::pool<>(m_blockSize);
}
~ThreadSpecificPool()
......
......@@ -170,9 +170,7 @@ namespace Nektar
Array<OneD, NekDouble > Bwd (nTracePts);
Array<OneD, NekDouble > Vn (nTracePts, 0.0);
Array<OneD, NekDouble > fluxtemp(nTracePts, 0.0);
// Get the normal velocity Vn
for(i = 0; i < nDim; ++i)
{
......
......@@ -1698,7 +1698,7 @@ namespace Nektar
nummodesA = P-1;
nummodesB = Q-1;
}
else if (fid == 2 || fid == 4) // front and back quad
else // front and back quad
{
nummodesA = Q-1;
nummodesB = R-1;
......
......@@ -775,7 +775,7 @@ namespace Nektar
int i;
int cnt=0;
int nummodes0, nummodes1;
int value1, value2;
int value1 = 0, value2 = 0;
if(outarray.num_elements()!=NumBndryCoeffs())
{
outarray = Array<OneD, unsigned int>(NumBndryCoeffs());
......@@ -892,7 +892,7 @@ namespace Nektar
int StdQuadExp::v_GetVertexMap(int localVertexId)
{
int localDOF;
int localDOF = 0;
switch(localVertexId)
{
case 0:
......
......@@ -1670,7 +1670,7 @@ namespace Nektar
(GetEdgeBasisType(localVertexId)==LibUtilities::eModified_C),
"Mapping not defined for this type of basis");
int localDOF;
int localDOF = 0;
switch(localVertexId)
{
case 0:
......
Supports Markdown
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