Skip to content

Commit 4e356ad

Browse files
authored
Merge pull request #28 from nicola-giuliani/bug_fix_gcc
Bug fix gcc
2 parents 3655bab + 3edafec commit 4e356ad

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

include/constrained_matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void ConstrainedOperator<VEC,MATRIX>::vmult(VEC &dst, const VEC &src) const
9696
// std::cout<<i<<" ("<<this_mpi_process<<") "<<loc_src(i)<<std::endl;
9797

9898
matrix.vmult(dst, src);
99-
dst.compress(VectorOperation::insert);
99+
// dst.compress(VectorOperation::insert);
100100
// IndexSet dummy(dst.locally_owned_elements());
101101

102102
for (unsigned int i=0; i<src.size(); ++i)

source/bem_fma.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ void BEMFMA<dim>::direct_integrals()
723723

724724
//MAGARI USARE FEVALUES CON IL DOFHANDLER CRETINO DISCONTINUO E IL MAPPING bem_fma
725725
Point<dim> D;
726-
double s;
726+
double s=0.;
727727

728728
const Tensor<1, dim> R = this->quadPoints.at(cell)[*pos] - support_points[nodeIndex];
729729
LaplaceKernel::kernels(R, D, s);
@@ -800,7 +800,7 @@ void BEMFMA<dim>::direct_integrals()
800800
for (unsigned int q=0; q<singular_quadrature->size(); ++q)
801801
{
802802
Point<dim> D;
803-
double s;
803+
double s=0.;
804804

805805
const Tensor<1, dim> R = singular_q_points[q] - support_points[nodeIndex];
806806
LaplaceKernel::kernels(R, D, s);
@@ -978,7 +978,7 @@ void BEMFMA<dim>::direct_integrals()
978978
// here we compute the distance R between the node and the quad point
979979
const Tensor<1,dim> R = quadPoints[cell][*pos] - support_points[nodeIndex];
980980
Point<dim> D;
981-
double s;
981+
double s=0.;
982982

983983
LaplaceKernel::kernels(R, D, s);
984984

source/bem_problem.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ void BEMProblem<dim>::vmult(TrilinosWrappers::MPI::Vector &dst, const TrilinosWr
11721172
// one
11731173
if (!have_dirichlet_bc)
11741174
vector_shift(dst, -dst.l2_norm());
1175+
dst.compress(VectorOperation::add);
11751176
}
11761177

11771178

0 commit comments

Comments
 (0)