Skip to content
Snippets Groups Projects
Commit 659c8d45 authored by Markus Blatt's avatar Markus Blatt
Browse files

Code clean up.

[[Imported from SVN: r2484]]
parent ac365968
No related branches found
No related tags found
No related merge requests found
......@@ -447,11 +447,6 @@ namespace Dune
IsTrue<(chunkSize - (alignment - 1)) % alignment == 0>::yes();
IsTrue<elements>=1>::yes();
IsTrue<elements*alignedSize<=chunkSize>::yes();
/*
std::cout<<"S="<<S<<" sizeof(MemberType)="<<sizeof(MemberType)<<" sizeof(Reference)="<<sizeof(Reference)
<<" alignment="<<alignment<<" unionSize="<<unionSize<<" size="<<size
<<" alignedSize="<<alignedSize<<" chunkSize="<<chunkSize<<" elements="<<elements<<std::endl;
*/
}
template<class T, std::size_t S>
......
......@@ -8,7 +8,7 @@
#include <cassert>
#include <config.h>
#include "iteratorfacades.hh"
#include <iostream>
#include <ostream>
namespace Dune
{
......@@ -762,7 +762,6 @@ namespace Dune
#ifdef NDEBUG
size_=0;
#endif
std::cout<<"size="<<size_<<std::endl;
assert(size_==0);
// update the tail!
tail_ = &beforeHead_;
......
......@@ -104,19 +104,11 @@ int testPool()
std::cout<<"Checking "<<typeid(T).name()<<" sizeof="<<sizeof(T)<<" with size "<< size<<
" alignment="<<AlignmentOf<T>::value<<std::endl;
std::cout<<"size="<<0<<std::endl;
ret += testPool<0,T>();
std::cout<<"size="<<size<<std::endl;
ret += testPool<size,T>();
std::cout<<"size="<<5*size<<std::endl;
ret += testPool<5*size,T>();
std::cout<<"size="<<11*size<<std::endl;
ret += testPool<11*size,T>();
std::cout<<"size="<<size<<std::endl;
ret += testPool<33*size,T>();
std::cout<<"size="<<33*size<<std::endl;
return ret;
}
......
......@@ -374,6 +374,22 @@ int main()
randomizeListBack(list1);
randomizeListFront(list);
Dune::SLList<double,DoubleAllocator> copied(list);
if(copied.size()!=list.size()) {
std::cerr << "Size of copied list does not match!"<<std::endl;
++ret;
}
else{
typedef Dune::SLList<double,DoubleAllocator>::const_iterator Iterator;
Iterator iend = list.end();
for(Iterator iter1=list.begin(), iter2=copied.begin(); iter1 != iend; ++iter1, ++iter2)
if(*iter1!=*iter2) {
std::cerr << "Entries of copied are not the same!"<<std::endl;
++ret;
}
}
//randomizeListFront(list2);
/*
Printer<std::iterator_traits<Dune::SLList<double,DoubleAllocator>::ModifyIterator>::value_type> print;
......
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