Commit 033282d5 authored by Pietro Incardona's avatar Pietro Incardona

Fixin MPI detection

parent 920ca1b0
......@@ -366,7 +366,7 @@ else
bash_library="export DYLD_LIBRARY_PATH=\"\$DYLD_LIBRARY_PATH"
fi
bash_path="export PATH=\"\$PATH"
bash_path="export PATH=\""
echo -e "\033[1;34;5m --------------------------------------- \033[0m"
echo -e "\033[1;34;5m --------- INSTALLATION REPORT --------- \033[0m"
......@@ -376,7 +376,7 @@ echo ""
if [ -d "$i_dir/MPI" ]; then
installation_report="$installation_report \033[92;1mMPI\033[0m Installed: \033[1m $i_dir/MPI \033[0m\n"
bash_path="$i_dir/MPI/bin:$bash_path"
bash_path="$bash_path:$i_dir/MPI/bin:$PATH"
bash_library="$bash_library:$i_dir/MPI/lib"
elif [ $MPI_System_prv -eq 1 ]; then
installation_report="$installation_report \033[92;1mMPI\033[0m Installed: \033[1m System installation \033[0m\n"
......
......@@ -155,7 +155,7 @@ protected:
HeapMemory hp_recv;
// Receive counter
size_t recv_cnt;
size_t recv_cnt = 0;
/*! \brief It convert the box from the domain decomposition into sub-domain
*
......
......@@ -186,6 +186,25 @@ public:
{
// TODO Move into VCluster
MPI_Comm_dup(MPI_COMM_WORLD, &comm);
// Nullify Mg
Mg.nvtxs = NULL;
Mg.ncon = NULL;
Mg.xadj = NULL;
Mg.adjncy = NULL;
Mg.vwgt = NULL;
Mg.vsize = NULL;
Mg.adjwgt = NULL;
Mg.nparts = NULL;
Mg.tpwgts = NULL;
Mg.ubvec = NULL;
Mg.options = NULL;
Mg.objval = NULL;
Mg.part = NULL;
Mg.edgecut = NULL;
Mg.itr = NULL;
Mg.numflag = NULL;
Mg.wgtflag = NULL;
}
//TODO deconstruct new variables
......
......@@ -224,6 +224,9 @@ public:
Mg.itr = NULL;
Mg.numflag = NULL;
Mg.wgtflag = NULL;
first.id = 0;
last.id = 0;
nvertex = 0;
}
//TODO deconstruct new variables
......
......@@ -96,7 +96,7 @@ struct Box_sub_k
long int k;
Box_sub_k()
:k(-1)
:sub(0),k(-1)
{
cmb.zero();
}
......@@ -171,7 +171,7 @@ struct N_box
//! Default constructor
N_box()
:id((size_t)-1)
:id((size_t)-1),n_real_sub(0)
{};
//! Copy constructor
......
......@@ -171,11 +171,6 @@ template<unsigned int dim, unsigned int prp, typename T, typename V> void cross_
{
auto it_v = vd.getDomainIterator();
float sum[dim];
for (size_t i = 0; i < dim; i++)
sum[i] = 0;
while (it_v.isNext())
{
//key
......
......@@ -1485,7 +1485,7 @@ BOOST_AUTO_TEST_CASE( vector_dist_cl_random_vs_hilb_forces_test )
calc_forces_hilb<dim>(NN_hilb,vd2,r_cut);
// Calculate average
size_t count = 0;
size_t count = 1;
Point<dim,float> avg;
for (size_t i = 0 ; i < dim ; i++) {avg.get(i) = 0.0;}
......@@ -1606,8 +1606,8 @@ BOOST_AUTO_TEST_CASE( vector_dist_cl_random_vs_reorder_forces_test )
//Calculate forces '1'
calc_forces<dim,1>(NN2,vd,r_cut);
// Calculate average
size_t count = 0;
// Calculate average (For Coverty scan we start from 1)
size_t count = 1;
Point<dim,float> avg;
for (size_t i = 0 ; i < dim ; i++) {avg.get(i) = 0.0;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment