template <int dim>
void GridIn<dim>::skip_comment_lines (std::istream &in,
const char comment_start)
-{
+{
char c;
- while (in.get(c), c==comment_start)
- {
- char line[256];
- in.get (line, 255, '\n'); // ignore rest of line, at most 256 chars
- in.get (c); // ignore '\n' at end of line.
- };
+ // loop over the following comment
+ // lines
+ while ((c=in.get()) == comment_start)
+ // loop over the characters after
+ // the comment starter
+ while (in.get() != '\n');
// put back first character of
// first non-comment line
<h3>deal.II</h3>
<ol>
+ <li> <p>
+ Fixed: the <code class="class">GridIn</code> class had problems
+ when reading in UCD grids with comment lines that contained
+ only the comment sign, but nothing else. This is now fixed.
+ <br>
+ (WB 2002/08/30)
+ </p>
+
<li> <p>
Improved: <code class="class">VectorTools</code>::<code
class="member">integrate_difference</code> can compute <i>L<sup>p</sup></i>
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams