From: Martin Kronbichler Date: Thu, 16 Jun 2022 12:21:48 +0000 (+0200) Subject: Fix PETSc complex tests X-Git-Tag: v9.4.0-rc1~7^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4eea54216216f653a6c71088495f8781748592;p=dealii.git Fix PETSc complex tests --- diff --git a/tests/petsc_complex/assemble_01.mpirun=1.output b/tests/petsc_complex/assemble_01.mpirun=1.output index ac7b985c6e..a76f334c05 100644 --- a/tests/petsc_complex/assemble_01.mpirun=1.output +++ b/tests/petsc_complex/assemble_01.mpirun=1.output @@ -16,6 +16,7 @@ (3,2) (14.0000,0.00000) (3,3) (15.0000,0.00000) [Proc0 0-3] (0.000e+00,0.000e+00) (2.000e+00,0.000e+00) (4.000e+00,0.000e+00) (6.000e+00,0.000e+00) +(0,0) (0.00000,0.00000) (0,1) (1.00000,0.00000) (0,2) (2.00000,0.00000) (0,3) (3.00000,0.00000) diff --git a/tests/simplex/step-17.cc b/tests/simplex/step-17.cc index 0da2d021f5..9a1a86bc3b 100644 --- a/tests/simplex/step-17.cc +++ b/tests/simplex/step-17.cc @@ -119,7 +119,7 @@ namespace Step17 FESystem fe; DoFHandler dof_handler; - AffineConstraints hanging_node_constraints; + AffineConstraints hanging_node_constraints; PETScWrappers::MPI::SparseMatrix system_matrix; @@ -233,8 +233,8 @@ namespace Step17 const unsigned int dofs_per_cell = fe.n_dofs_per_cell(); const unsigned int n_q_points = quadrature_formula.size(); - FullMatrix cell_matrix(dofs_per_cell, dofs_per_cell); - Vector cell_rhs(dofs_per_cell); + FullMatrix cell_matrix(dofs_per_cell, dofs_per_cell); + Vector cell_rhs(dofs_per_cell); std::vector local_dof_indices(dofs_per_cell); @@ -341,7 +341,7 @@ namespace Step17 upper); - Vector localized_solution(solution); + Vector localized_solution(solution); hanging_node_constraints.distribute(localized_solution); solution = localized_solution; @@ -352,7 +352,7 @@ namespace Step17 void ElasticProblem::output_results() const { - const Vector localized_solution(solution); + const Vector localized_solution(solution); if (this_mpi_process == 0) { diff --git a/tests/simplex/step-18.cc b/tests/simplex/step-18.cc index b8a099550b..37ba34f885 100644 --- a/tests/simplex/step-18.cc +++ b/tests/simplex/step-18.cc @@ -639,14 +639,13 @@ namespace Step18 #endif - FEValuesExtractors::Scalar z_component(dim - 1); - std::map boundary_values; - VectorTools::interpolate_boundary_values( - mapping, - dof_handler, - 0, - Functions::ZeroFunction(dim), - boundary_values); + FEValuesExtractors::Scalar z_component(dim - 1); + std::map boundary_values; + VectorTools::interpolate_boundary_values(mapping, + dof_handler, + 0, + Functions::ZeroFunction(dim), + boundary_values); VectorTools::interpolate_boundary_values( mapping, dof_handler, diff --git a/tests/simplex/step-18.mpirun=1.with_petsc=true.output b/tests/simplex/step-18.mpirun=1.with_petsc=true.with_petsc_with_complex=false.output similarity index 100% rename from tests/simplex/step-18.mpirun=1.with_petsc=true.output rename to tests/simplex/step-18.mpirun=1.with_petsc=true.with_petsc_with_complex=false.output