From: Wolfgang Bangerth Date: Thu, 23 Apr 1998 11:56:26 +0000 (+0000) Subject: Do some cleanup and adaption to new C++ standard. X-Git-Tag: v8.0.0~23068 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99decb1b8f39741782252c3d92c932633905b007;p=dealii.git Do some cleanup and adaption to new C++ standard. git-svn-id: https://svn.dealii.org/trunk@186 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/Todo b/deal.II/deal.II/Todo index c1bf805c7e..8c6bd2def1 100644 --- a/deal.II/deal.II/Todo +++ b/deal.II/deal.II/Todo @@ -1,7 +1,3 @@ -Replace the declaration of vector in tria.h by something real - when gcc2.8 is available - - Rewrite code like int flagged_cells = 0; for (; cell!=endc; ++cell) @@ -33,8 +29,6 @@ Let ParameterHandler and DataIn/Out throw exceptions. Make more tests Replace function objects by mem_fun, fun_ptr, ... when member function templates are supported. -implement ProblemBase::distribute_cell_to_dof_vector - Remove gcc2.8 workaround with DoFSubstructAccessor @@ -67,11 +61,6 @@ Update DoFHandler::distribute_cell_to_dof_vector for higher order on the vertices). -Replace in dof.cc by and by - in dof_constraints.h - - - DEAL: @@ -90,13 +79,6 @@ Let all the reinit functions in /lac free their memory, if reinit is called with less requirements. Maybe give free all memory if the given dimension is zero. If so, check all deal.II files for use of reinit. -Use unsigned integers for the colnums array in dSMatrixStruct. This - would enhance safety since colnum=-1 would no longer point to a - valid address. Additionally, add a break statement upon first - encounter of sorted colnums==-1 in dsmatrixstruct::compress (by - now, all -1's are sorted _first_, so we can't skip them if we want - to get to the other colnums. If it were MAXINT instead of -1, we - could skip all entries after finding the first MAXINT). Why are there all these unsafe casts from VectorBase to dVector in dvector.cc? @@ -109,10 +91,6 @@ Use unsigned integers for the colnums array in dSMatrixStruct. This to get to the other colnums. If it were MAXINT instead of -1, we could skip all entries after finding the first MAXINT). -Why are there all these unsafe casts from VectorBase to dVector - in dvector.cc? - - Optimize dSMatrixStruct::compress, using standard sort algorithms and only sorting the used range of indices, not those with -1 entries. diff --git a/deal.II/deal.II/include/dofs/dof_constraints.h b/deal.II/deal.II/include/dofs/dof_constraints.h index fbb3eb8f56..1545ad4c57 100644 --- a/deal.II/deal.II/include/dofs/dof_constraints.h +++ b/deal.II/deal.II/include/dofs/dof_constraints.h @@ -6,7 +6,7 @@ #include -#include +#include #include diff --git a/deal.II/deal.II/source/dofs/dof_handler.cc b/deal.II/deal.II/source/dofs/dof_handler.cc index a0a68dd97f..d5f2541407 100644 --- a/deal.II/deal.II/source/dofs/dof_handler.cc +++ b/deal.II/deal.II/source/dofs/dof_handler.cc @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include