//---------------------------- sparse_matrix_vector_07.cc ---------------------------
-// $Id$
-// Version: $Name$
+// sparse_matrix_vector_07.cc,v 1.5 2004/02/26 17:25:45 wolf Exp
+// Version:
//
// Copyright (C) 2004 by the deal.II authors
//
Assert (x(i) == result, ExcInternalError());
}
- Assert (s == x.l2_norm(), ExcInternalError());
+ Assert (std::fabs((s - x.l2_norm())/s) < 1e-14, ExcInternalError());
deallog << "OK" << std::endl;
}
//---------------------------- vector_18.cc ---------------------------
-// $Id$
-// Version: $Name$
+// vector_18.cc,v 1.4 2004/02/26 17:25:45 wolf Exp
+// Version:
//
// Copyright (C) 2004 by the deal.II authors
//
v.compress ();
// then check the norm
- Assert (v.l2_norm() == std::sqrt(norm), ExcInternalError());
+ Assert (std::fabs((v.l2_norm() - std::sqrt(norm))/std::sqrt(norm)) < 1e-14, ExcInternalError());
deallog << "OK" << std::endl;
}
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