Fix compilation and warning of PARDISO

This commit is contained in:
Gael Guennebaud 2013-08-02 11:05:00 +02:00
parent e90229a429
commit 8ea7413a64

View File

@ -219,7 +219,7 @@ class PardisoImpl
void pardisoInit(int type) void pardisoInit(int type)
{ {
m_type = type; m_type = type;
bool symmetric = abs(m_type) < 10; bool symmetric = std::abs(m_type) < 10;
m_iparm[0] = 1; // No solver default m_iparm[0] = 1; // No solver default
m_iparm[1] = 3; // use Metis for the ordering m_iparm[1] = 3; // use Metis for the ordering
m_iparm[2] = 1; // Numbers of processors, value of OMP_NUM_THREADS m_iparm[2] = 1; // Numbers of processors, value of OMP_NUM_THREADS
@ -278,7 +278,7 @@ class PardisoImpl
Index m_size; Index m_size;
private: private:
PardisoImpl(PardisoImpl &) {} PardisoImpl(const PardisoImpl&);
}; };
template<class Derived> template<class Derived>
@ -436,7 +436,7 @@ class PardisoLU : public PardisoImpl< PardisoLU<MatrixType> >
} }
private: private:
PardisoLU(PardisoLU& ) {} PardisoLU(const PardisoLU&);
}; };
/** \ingroup PardisoSupport_Module /** \ingroup PardisoSupport_Module
@ -495,7 +495,7 @@ class PardisoLLT : public PardisoImpl< PardisoLLT<MatrixType,_UpLo> >
} }
private: private:
PardisoLLT(PardisoLLT& ) {} PardisoLLT(const PardisoLLT&);
}; };
/** \ingroup PardisoSupport_Module /** \ingroup PardisoSupport_Module
@ -554,7 +554,7 @@ class PardisoLDLT : public PardisoImpl< PardisoLDLT<MatrixType,Options> >
} }
private: private:
PardisoLDLT(PardisoLDLT& ) {} PardisoLDLT(const PardisoLDLT&);
}; };
namespace internal { namespace internal {