Commit 6f09d9e4 authored by David Moxey's avatar David Moxey

Try to fix default constructor, fix FIELD_UTILS_EXPORT issue

parent 7745b277
......@@ -103,3 +103,5 @@ ADD_NEKTAR_LIBRARY(FieldUtils
SOURCES ${FieldUtilsSources}
HEADERS ${FieldUtilsHeaders}
DEPENDS GlobalMapping)
ADD_DEFINITIONS(-DFIELD_UTILS_EXPORTS)
......@@ -38,7 +38,7 @@ namespace Nektar
template<typename DataType>
NekMatrix<DataType, StandardMatrixTag>::NekMatrix() :
Matrix<DataType>(0, 0),
Matrix<DataType>(0, 0, eFULL),
m_data(),
m_wrapperType(eCopy),
m_numberOfSuperDiagonals(std::numeric_limits<unsigned int>::max()),
......
......@@ -53,9 +53,7 @@ namespace Nektar
BOOST_AUTO_TEST_CASE(TestDefaultConstructor)
{
double buf[] = {};
boost::shared_ptr<InnerMatrix> in(new InnerMatrix(0, 0, buf));
SMat m(0.0, in);
SMat m;
BOOST_CHECK_EQUAL(0u, m.GetRows());
BOOST_CHECK_EQUAL(0u, m.GetColumns());
BOOST_CHECK(boost::shared_ptr<InnerMatrix>() != m.GetOwnedMatrix());
......
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