Skip to content
Snippets Groups Projects
Commit 16062e07 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Remove unused variable w in fmatrixev.hh.

Ignore eigenvaluetest.
Reordner member variable assignments to avoid pedantic warnings in
shared_ptr.
Only activate boundary checking in dynmatrixtest if not already active.

[[Imported from SVN: r7063]]
parent 1efa83f8
No related branches found
No related tags found
No related merge requests found
......@@ -143,9 +143,6 @@ namespace Dune {
const char jobvl = 'n';
const char jobvr = 'n';
// length of matrix vector
const long int w = N * N ;
// matrix to put into dgeev
double matrixVector[dim * dim];
......
......@@ -187,8 +187,8 @@ namespace Dune
/** @brief Constructor from existing Pointer with custom deleter. */
SharedCountImpl(T* elem,const Deleter& deleter) :
SharedCount(),
rep_(elem),
deleter_(deleter)
deleter_(deleter),
rep_(elem)
{}
/** @brief Copy constructor with type conversion. */
SharedCountImpl(const SharedCountImpl& rep)
......@@ -258,7 +258,7 @@ namespace Dune
template<class T>
template<class T1>
inline shared_ptr<T>::shared_ptr(const shared_ptr<T1>& other)
: rep_(other.rep_), count_(other.count_)
: count_(other.count_), rep_(other.rep_)
{
if (rep_)
++(count_->count_);
......@@ -266,7 +266,7 @@ namespace Dune
template<class T>
inline shared_ptr<T>::shared_ptr(const shared_ptr& other)
: rep_(other.rep_), count_(other.count_)
: count_(other.count_), rep_(other.rep_)
{
if (rep_)
++(count_->count_);
......
......@@ -69,3 +69,4 @@ testdebugallocator_fail2
testdebugallocator_fail3
testdebugallocator_fail4
testdebugallocator_fail5
eigenvaluestest
......@@ -3,7 +3,10 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
// Activate checking
#ifndef DUNE_ISTL_WITH_CHECKING
#define DUNE_ISTL_WITH_CHECKING
#endif
#include <dune/common/dynmatrix.hh>
#include <dune/common/dynvector.hh>
#include <dune/common/fvector.hh>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment