// ---------------------------------------------------------------------
//
-// Copyright (C) 2014 - 2017 by the deal.II authors
+// Copyright (C) 2014 - 2018 by the deal.II authors
//
// This file is part of the deal.II library.
//
#include "../tests.h"
-std::ofstream logfile("output");
-
-
template <int dim,
int fe_degree,
mf.apply_inverse(inverse, in);
- SolverControl control(1000, 1e-12);
- // do not output iteration numbers to log file because these are too
- // sensitive
- std::ostringstream stream;
- deallog.attach(stream);
+ SolverControl control(1000, 1e-12);
SolverCG<Vector<number>> solver(control);
solver.solve(mf, reference, in, PreconditionIdentity());
- deallog.attach(logfile);
inverse -= reference;
const double diff_norm = inverse.linfty_norm() / reference.linfty_norm();
int
main()
{
- deallog.attach(logfile);
+ initlog();
deallog << std::setprecision(3);
+ // do not output CG iteration numbers to log file because these are too
+ // sensitive
+ deallog.depth_file(2);
{
deallog.push("2d");
DEAL:2d::Testing FE_DGQ<2>(1)
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 2.21e-13
DEAL:2d::
-DEAL:2d:float::Testing FE_DGQ<2>(1)
-
-DEAL:2d:float::Norm of difference: 0
-DEAL:2d:float::
DEAL:2d::Testing FE_DGQ<2>(2)
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 1.29e-13
DEAL:2d::
-DEAL:2d:float::Testing FE_DGQ<2>(2)
-
-DEAL:2d:float::Norm of difference: 0
-DEAL:2d:float::
DEAL:2d::Testing FE_DGQ<2>(4)
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 4.60e-14
DEAL:2d::
-DEAL:2d:float::Testing FE_DGQ<2>(4)
-
-DEAL:2d:float::Norm of difference: 0
-DEAL:2d:float::
DEAL:3d::Testing FE_DGQ<3>(1)
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 3.27e-14
DEAL:3d::
DEAL:3d::Testing FE_DGQ<3>(2)
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 1.03e-15
DEAL:3d::
#include "../tests.h"
-std::ofstream logfile("output");
-
-
template <int dim,
int fe_degree,
mf.apply_inverse(inverse, in);
- SolverControl control(1000, 1e-12);
- std::ostringstream stream;
- deallog.attach(stream);
+ SolverControl control(1000, 1e-12);
SolverCG<Vector<number>> solver(control);
solver.solve(mf, reference, in, PreconditionIdentity());
- deallog.attach(logfile);
inverse -= reference;
const double diff_norm = inverse.linfty_norm() / reference.linfty_norm();
int
main()
{
- deallog.attach(logfile);
+ initlog();
deallog << std::setprecision(3);
+ deallog.depth_file(2);
{
deallog.push("2d");
DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(1)^2]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 5.67e-16
DEAL:2d::
DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(2)^2]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 1.01e-14
DEAL:2d::
DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(4)^2]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 9.43e-16
DEAL:2d::
DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(1)^3]
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 1.23e-15
DEAL:3d::
DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(2)^3]
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 2.30e-15
DEAL:3d::
// ---------------------------------------------------------------------
//
-// Copyright (C) 2014 - 2017 by the deal.II authors
+// Copyright (C) 2014 - 2018 by the deal.II authors
//
// This file is part of the deal.II library.
//
#include "../tests.h"
-std::ofstream logfile("output");
-
-
template <int dim,
int fe_degree,
mf.apply_inverse(inverse, in);
- SolverControl control(10000, 1e-12);
- std::ostringstream stream;
- deallog.attach(stream);
+ SolverControl control(10000, 1e-12);
SolverCG<Vector<number>> solver(control);
solver.solve(mf, reference, in, PreconditionIdentity());
- deallog.attach(logfile);
inverse -= reference;
const double diff_norm = inverse.linfty_norm() / reference.linfty_norm();
int
main()
{
- deallog.attach(logfile);
+ initlog();
deallog << std::setprecision(3);
+ // do not output CG iteration numbers to log file because these are too
+ // sensitive
+ deallog.depth_file(2);
+
{
deallog.push("2d");
test<2, 1>();
DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(1)^3]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 1.57e-13
DEAL:2d::
DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(2)^3]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 4.92e-14
DEAL:2d::
DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(4)^3]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 6.71e-14
DEAL:2d::
DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(1)^3]
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 7.04e-14
DEAL:3d::
DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(2)^3]
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 4.85e-14
DEAL:3d::