Skip to content

Commit 3655bab

Browse files
Merge pull request #26 from nicola-giuliani/no_warning
Erased warnings and useless old files
2 parents c5df064 + c60d483 commit 3655bab

9 files changed

Lines changed: 17 additions & 1384 deletions

File tree

include/min_bem_operator.h

Lines changed: 0 additions & 37 deletions
This file was deleted.

include/step_fma.h

Lines changed: 0 additions & 232 deletions
This file was deleted.

scripts/run_docker.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
2-
IMG=`grep image .travis.yml | awk '{print $2}'`
2+
IMG=mathlab/deal2lkit:latest #`grep image .travis.yml | awk '{print $2}'`
33
echo $IMG
44

55
CMD=`grep -e '- ' .travis.yml | sed 's/- //'`
6+
echo $CMD
67
docker pull $IMG
7-
docker run -v `pwd`/..:/builds/studenti/pi-BEM/ $IMG /bin/sh -c "$CMD"
8+
docker run -v `pwd`/..:/app/ $IMG /bin/sh -c "cd /app && $CMD"

source/bem_fma.cc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ void BEMFMA<dim>::direct_integrals()
170170
// general):
171171

172172

173-
cell_it
174-
cell = fma_dh->begin_active(),
175-
endc = fma_dh->end();
176-
177173
// first, we (re)initialize the
178174
// preconditioning matricies by
179175
// generating the corresponding
@@ -793,7 +789,7 @@ void BEMFMA<dim>::direct_integrals()
793789

794790
// here are the vectors of the quad points and normals vectors
795791

796-
const std::vector<Tensor<1, dim> > &singular_normals = fe_v_singular.get_all_normal_vectors();
792+
const std::vector<Tensor<1, dim> > &singular_normals = fe_v_singular.get_normal_vectors();
797793
const std::vector<Point<dim> > &singular_q_points = fe_v_singular.get_quadrature_points();
798794

799795

@@ -1732,7 +1728,6 @@ void BEMFMA<dim>::generate_multipole_expansions(const TrilinosWrappers::MPI::Vec
17321728
// these two variables will be handy in the following
17331729

17341730
std::vector<types::global_dof_index> local_dof_indices(fma_dh->get_fe().dofs_per_cell);
1735-
double delta;
17361731

17371732
// we loop on blocks and for each of them we create an empty multipole expansion
17381733
// centered in the block center
@@ -2098,7 +2093,6 @@ void BEMFMA<dim>::multipole_matr_vect_products(const TrilinosWrappers::MPI::Vect
20982093
DoFTools::map_dofs_to_support_points<dim-1, dim>( *fma_mapping,
20992094
*fma_dh, support_points);
21002095
std::vector<types::global_dof_index> local_dof_indices(fma_dh->get_fe().dofs_per_cell);
2101-
double delta;
21022096

21032097

21042098

@@ -2387,7 +2381,7 @@ void BEMFMA<dim>::multipole_matr_vect_products(const TrilinosWrappers::MPI::Vect
23872381

23882382
// The Workstream has to run only if there are blocks in the current level. Then it basically performs
23892383
// a loop over all the blocks in the current level.
2390-
if (endLevel[level]>=startLevel[level])
2384+
if (endBlockLevel>=startBlockLevel)
23912385
WorkStream::run(dofs_filled_blocks[level].begin(),
23922386
dofs_filled_blocks[level].end(),
23932387
std_cxx11::bind(f_worker_Descend, std_cxx11::_1, std_cxx11::_2, std_cxx11::_3, startBlockLevel),
@@ -3254,7 +3248,7 @@ void BEMFMA<dim>::generate_octree_blocking()
32543248
const unsigned int n_q_points = fe_v.n_quadrature_points;
32553249
quadPoints[cell] = fe_v.get_quadrature_points();
32563250
// quadNormals[cell] = fe_v.get_normal_vectors();
3257-
quadNormals[cell] = fe_v.get_all_normal_vectors();
3251+
quadNormals[cell] = fe_v.get_normal_vectors();
32583252
quadJxW[cell].resize(n_q_points);
32593253
quadShapeFunValues[cell].resize(n_q_points);
32603254
for (unsigned int q=0; q<n_q_points; ++q)

source/bem_problem.cc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ void BEMProblem<dim>::assemble_system()
678678
cell->get_dof_indices(local_dof_indices);
679679

680680
const std::vector<Point<dim> > &q_points = fe_v.get_quadrature_points();
681-
const std::vector<Tensor<1, dim> > &normals = fe_v.get_all_normal_vectors();
681+
const std::vector<Tensor<1, dim> > &normals = fe_v.get_normal_vectors();
682682

683683
// We then form the integral over
684684
// the current cell for all
@@ -975,7 +975,7 @@ void BEMProblem<dim>::assemble_system()
975975

976976
fe_v_singular.reinit(cell);
977977

978-
const std::vector<Tensor<1, dim> > &singular_normals = fe_v_singular.get_all_normal_vectors();
978+
const std::vector<Tensor<1, dim> > &singular_normals = fe_v_singular.get_normal_vectors();
979979
const std::vector<Point<dim> > &singular_q_points = fe_v_singular.get_quadrature_points();
980980

981981
for (unsigned int q=0; q<singular_quadrature->size(); ++q)
@@ -1766,8 +1766,7 @@ void BEMProblem<dim>::compute_gradients(const TrilinosWrappers::MPI::Vector &glo
17661766
std::vector< Tensor<1,dim> > dummy_phi_surf_grads(n_q_points);
17671767

17681768
cell_it
1769-
vector_cell = gradient_dh.begin_active(),
1770-
vector_endc = gradient_dh.end();
1769+
vector_cell = gradient_dh.begin_active();
17711770

17721771
cell_it
17731772
cell = dh.begin_active(),
@@ -1785,7 +1784,7 @@ void BEMProblem<dim>::compute_gradients(const TrilinosWrappers::MPI::Vector &glo
17851784
vector_fe_v.reinit (vector_cell);
17861785
local_gradients_matrix = 0;
17871786
local_gradients_rhs = 0;
1788-
const std::vector<Tensor<1, dim> > &vector_node_normals = vector_fe_v.get_all_normal_vectors();
1787+
const std::vector<Tensor<1, dim> > &vector_node_normals = vector_fe_v.get_normal_vectors();
17891788
fe_v.get_function_gradients(phi, phi_surf_grads);
17901789
fe_v.get_function_values(dphi_dn, phi_norm_grads);
17911790
unsigned int comp_i, comp_j;
@@ -1902,8 +1901,7 @@ void BEMProblem<dim>::compute_surface_gradients(const TrilinosWrappers::MPI::Vec
19021901
std::vector< Tensor<1,dim> > dummy_phi_surf_grads(n_q_points);
19031902

19041903
cell_it
1905-
vector_cell = gradient_dh.begin_active(),
1906-
vector_endc = gradient_dh.end();
1904+
vector_cell = gradient_dh.begin_active();
19071905

19081906
cell_it
19091907
cell = dh.begin_active(),
@@ -2021,7 +2019,7 @@ void BEMProblem<dim>::compute_normals()
20212019
vector_fe_v.reinit (vector_cell);
20222020
local_normals_matrix = 0;
20232021
local_normals_rhs = 0;
2024-
const std::vector<Tensor<1, dim> > &vector_node_normals = vector_fe_v.get_all_normal_vectors();
2022+
const std::vector<Tensor<1, dim> > &vector_node_normals = vector_fe_v.get_normal_vectors();
20252023
unsigned int comp_i, comp_j;
20262024

20272025
for (unsigned int q=0; q<vector_n_q_points; ++q)

0 commit comments

Comments
 (0)