Browse Source

mpi_lu: made diagonal even stronger to avoid computation weaknesses

Samuel Thibault 4 years ago
parent
commit
634f525b20
1 changed files with 2 additions and 1 deletions
  1. 2 1
      mpi/examples/mpi_lu/plu_example.c

+ 2 - 1
mpi/examples/mpi_lu/plu_example.c

@@ -268,7 +268,8 @@ static void init_matrix(int rank)
 					unsigned tmp;
 					unsigned tmp;
 					for (tmp = 0; tmp < size/nblocks; tmp++)
 					for (tmp = 0; tmp < size/nblocks; tmp++)
 					{
 					{
-						(*blockptr)[tmp*((size/nblocks)+1)] += (TYPE)10*nblocks;
+						(*blockptr)[tmp*((size/nblocks)+1)] += 1;
+						(*blockptr)[tmp*((size/nblocks)+1)] *= 100;
 					}
 					}
 				}
 				}