Skip to content
Snippets Groups Projects
Commit 725dc7e5 authored by Nicolas Fley's avatar Nicolas Fley
Browse files

Dispatching matrix size optimised again

parent 28249166
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -80,16 +80,10 @@ int main (int argc, char *argv[]) {
}
/* Define the size of the problem */
h_base=(size_prob/size)+1; // h_base is the default height given to all the processus except the last one
if(size_prob%size==0){
h_prob=size_prob/size; // h_prob is the processus' problem height
h_base=h_prob;
}else{
h_prob=(size_prob/size);
if(rank<size_prob%h_base-1){
if(rank<size_prob%h_prob)
h_prob+=1;
}
}
w_prob=size_prob; // w_prob is not dependent of the number of processus.
if(DEBUG)
printf("height %d : %d\n",rank,h_prob);
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment