data_vector->data.reinit (vec.size());
std::copy (vec.begin(), vec.end(),
data_vector->data.begin());
- break;
+ return;
};
- Assert (data_vector != dof_data.end(),
- ExcVectorNotDeclared (names[0]));
+
+ // ok. not found. there is a
+ // slight chance that
+ // n_dofs==n_cells, so only
+ // bomb out if the next if
+ // statement will not be run
+ if (dof_handler->n_dofs() != dof_handler->get_tria().n_active_cells())
+ Assert (false, ExcVectorNotDeclared (names[0]));
}
- else
+
+ // search cell data
+ if ((vec.size() != dof_handler->n_dofs()) ||
+ (dof_handler->n_dofs() == dof_handler->get_tria().n_active_cells()))
{
typename std::vector<DataVector>::iterator data_vector=cell_data.begin();
for (; data_vector!=cell_data.end(); ++data_vector)
data_vector->data.reinit (vec.size());
std::copy (vec.begin(), vec.end(),
data_vector->data.begin());
- break;
+ return;
};
- Assert (data_vector != cell_data.end(),
- ExcVectorNotDeclared (names[0]));
+ Assert (false, ExcVectorNotDeclared (names[0]));
};
+
+ // we have either return or Assert
+ // statements above, so shouldn't
+ // get here!
+ Assert (false, ExcInternalError());
}
</p>
<li> <p>
- Changed: Class and structures that are declared inside namespaces named
+ Changed: Classes and structures that are declared inside namespaces named
<code class="class">internal</code> are now no longer shown in the class
index view of the documentation of each of the sublibraries. Since they
are supposed to be used internally only, this is no drawback for the
Fixed: Some of the formulas in the step-14 tutorial were obviously
scrambled a little. This is now fixed.
<br>
- (WB 2003/01/30)
+ (Roy Stogner, WB 2003/01/30)
</p>
<li> <p>
Changed: The main Makefile has been changed to sequentialize building
- the base, lac, and deal.II subibraries. We changed this, since on some
+ the base, lac, and deal.II sublibraries. We changed this, since on some
systems (notably AIX), the latter libraries need to be linked against
the former ones, when creating shared libraries.
<br>
<h3>deal.II</h3>
<ol>
+ <li> <p>
+ Fixed: The <code class="class">DataOutStack</code> class had a problem
+ when there were as many degrees of freedom as there were cells (i.e. if
+ we were using DG0 elements). This should now be fixed.
+ <br>
+ (WB 2003/03/02)
+ </p>
+
<li> <p>
Fixed: The <code class="class">DataOutFaces</code> class was
broken for cell data. It should now be correct, although the
member function <code class="member">half_hyper_ball</code>,
derived from member <code class="member">hyper_ball</code>.
The intial mesh contains four elements. This mesh will work with
- the boundary class <code class="class">template <int dim>
- HalfHyperBallBoundary</code>.
+ the boundary class <code class="class">HalfHyperBallBoundary</code>.
<br>
(Brian Carnes 2002/12/16)
</p>
</p>
<li> <p> Improved: Several functions like the <code
- class="member">DoFHandler::distribute</code> and <code
+ class="member">DoFHandler::distribute_dofs</code> and <code
class="member">DoFTools::make_flux_sparsity_pattern</code>
functions altered the <code
class="member">user_flags</code>. This was stated in the