]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid some warnings in tests 7528/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 12 Dec 2018 23:14:56 +0000 (00:14 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 12 Dec 2018 23:37:30 +0000 (00:37 +0100)
tests/cuda/sparse_matrix_01.cu
tests/fe/fe_enriched_color_07.with_trilinos=true.with_muparser=true.with_trilinos_with_zoltan=true.with_petsc=true.with_petsc_with_complex=false.with_gsl=true.with_mpi=true.mpirun=2.output [moved from tests/fe/fe_enriched_color_07.with_trilinos=true.with_trilinos_with_zoltan=true.with_petsc=true.with_petsc_with_complex=false.with_gsl=true.with_mpi=true.mpirun=2.output with 100% similarity]
tests/optimization/step-44.h

index 4ca3de628a7361dfedbf4498f6de855dc096c847..2bd5c0f1eaf156f59c7a1b3de6a07b3c7b9cd2b7 100644 (file)
@@ -93,8 +93,8 @@ test(Utilities::CUDA::Handle &cuda_handle)
   CUDAWrappers::SparseMatrix<double> A_dev(cuda_handle, A);
   check_matrix(A, A_dev);
 
-  AssertThrow(A.m() == A_dev.m(), ExcInternalError());
-  AssertThrow(A.n() == A_dev.n(), ExcInternalError());
+  AssertDimension(A.m(), A_dev.m());
+  AssertDimension(A.n(), A_dev.n());
 
   // Multiply by a constant
   A *= 2.;
index d5f27ed88168b09611398d5d3e7d05a74bc748b4..2af76617a163f2584e9755a190f7c2e14987350d 100644 (file)
@@ -1350,6 +1350,7 @@ namespace Step44
               tangent_matrix.block(0, 0).frobenius_norm();
 
             (void)tang_mtrx_norm_new;
+            (void)tang_mtrx_norm_old;
             if (ss != 0.0)
               Assert(tang_mtrx_norm_new != tang_mtrx_norm_old,
                      ExcInternalError());

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


Typeset in Trocchi and Trocchi Bold Sans Serif.