From 622e753f671504ac4f5d54ae1941646fdc50ff0e Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Mon, 28 Mar 2016 23:52:28 +0200 Subject: [PATCH] minor complex-valued related cleanup of mpi/p4est_save_0x tests --- tests/mpi/p4est_save_02.cc | 10 +--------- tests/mpi/p4est_save_03.cc | 4 ++-- tests/mpi/p4est_save_04.cc | 4 ---- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/tests/mpi/p4est_save_02.cc b/tests/mpi/p4est_save_02.cc index fe4725e53f..26592aab9a 100644 --- a/tests/mpi/p4est_save_02.cc +++ b/tests/mpi/p4est_save_02.cc @@ -86,11 +86,7 @@ void test() for (unsigned int i=0; i(idx,0); -#else x(idx)=idx; -#endif // std::cout << '[' << idx << ']' << ' ' << solution(idx) << std::endl; } @@ -131,11 +127,7 @@ void test() PETScWrappers::MPI::Vector solution(locally_owned_dofs, MPI_COMM_WORLD); parallel::distributed::SolutionTransfer soltrans(dh); -#if PETSC_USE_COMPLEX - solution = std::complex(2,0); -#else - solution = 2; -#endif + solution = 2.0; soltrans.deserialize(solution); for (unsigned int i=0; i(idx);; - x2 (idx) = static_cast(2 * idx); + x (idx) = idx; + x2 (idx) = 2 * idx; // std::cout << '[' << idx << ']' << ' ' << solution(idx) << std::endl; } diff --git a/tests/mpi/p4est_save_04.cc b/tests/mpi/p4est_save_04.cc index 53a621dccb..57d9f278ba 100644 --- a/tests/mpi/p4est_save_04.cc +++ b/tests/mpi/p4est_save_04.cc @@ -87,11 +87,7 @@ void test() for (unsigned int i = 0; i < locally_owned_dofs.n_elements(); ++i) { unsigned int idx = locally_owned_dofs.nth_index_in_set (i); -#ifdef PETSC_USE_COMPLEX - x (idx) = std::complex(idx,0); -#else x (idx) = idx; -#endif deallog << '[' << idx << ']' << ' ' << PetscRealPart(x(idx)) << std::endl; } -- 2.39.5