Skip to content

Commit

Permalink
Fix a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed Mar 6, 2020
1 parent 85d9d67 commit e551f6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions tests/tensors/constexpr_tensor.cc
Expand Up @@ -179,10 +179,10 @@ main()
DEAL_II_CONSTEXPR const auto dummy_6 = contract3(a, middle, a);
DEAL_II_CONSTEXPR const auto dummy_7 = adjugate(a);
DEAL_II_CONSTEXPR const auto dummy_8 = cofactor(a);
deallog << "Deteriminant before orthogonalization: " << determinant(a)
deallog << "Determinant before orthogonalization: " << determinant(a)
<< std::endl;
const auto dummy_9 = project_onto_orthogonal_tensors(a, 0);
deallog << "Deteriminant after orthogonalization: " << determinant(dummy_9)
deallog << "Determinant after orthogonalization: " << determinant(dummy_9)
<< std::endl;
Assert(determinant(dummy_9) - 1. < 1e-8, ExcInternalError());

Expand All @@ -205,11 +205,11 @@ main()
{2., 0., 1}};
constexpr Tensor<2, 3> non_orthogonal{non_orthogonal_init};

deallog << "Deteriminant before orthogonalization: "
deallog << "Determinant before orthogonalization: "
<< determinant(non_orthogonal) << std::endl;
const auto dummy_10 = project_onto_orthogonal_tensors(non_orthogonal, 1e-8);
deallog << "Deteriminant after orthogonalization: "
<< determinant(dummy_10) << std::endl;
deallog << "Determinant after orthogonalization: " << determinant(dummy_10)
<< std::endl;
Assert(determinant(dummy_10) - 1. < 1e-8, ExcInternalError());
}

Expand Down
8 changes: 4 additions & 4 deletions tests/tensors/constexpr_tensor.output
Expand Up @@ -166,8 +166,8 @@ DEAL::Using Tensor within constexpr functions
DEAL::15.2000
DEAL::116.000
DEAL::Used memory: 72
DEAL::Deteriminant before orthogonalization: 1.00000
DEAL::Deteriminant after orthogonalization: 1.00000
DEAL::Deteriminant before orthogonalization: -1.50000
DEAL::Deteriminant after orthogonalization: -1.00000
DEAL::Determinant before orthogonalization: 1.00000
DEAL::Determinant after orthogonalization: 1.00000
DEAL::Determinant before orthogonalization: -1.50000
DEAL::Determinant after orthogonalization: -1.00000
DEAL::OK

0 comments on commit e551f6c

Please sign in to comment.