mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	Partial dirichlet changes
This commit is contained in:
		@@ -220,7 +220,7 @@ int main (int argc, char ** argv)
 | 
				
			|||||||
					      xmit_to_rank,1,
 | 
										      xmit_to_rank,1,
 | 
				
			||||||
					      (void *)&rbuf[mu][0],
 | 
										      (void *)&rbuf[mu][0],
 | 
				
			||||||
					      recv_from_rank,1,
 | 
										      recv_from_rank,1,
 | 
				
			||||||
					      bytes,mu);
 | 
										      bytes,bytes,mu);
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	    comm_proc = mpi_layout[mu]-1;
 | 
						    comm_proc = mpi_layout[mu]-1;
 | 
				
			||||||
	  
 | 
						  
 | 
				
			||||||
@@ -231,7 +231,7 @@ int main (int argc, char ** argv)
 | 
				
			|||||||
					      xmit_to_rank,1,
 | 
										      xmit_to_rank,1,
 | 
				
			||||||
					      (void *)&rbuf[mu+4][0],
 | 
										      (void *)&rbuf[mu+4][0],
 | 
				
			||||||
					      recv_from_rank,1,
 | 
										      recv_from_rank,1,
 | 
				
			||||||
					      bytes,mu+4);
 | 
										      bytes,bytes,mu+4);
 | 
				
			||||||
	  
 | 
						  
 | 
				
			||||||
	  }
 | 
						  }
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -312,7 +312,7 @@ int main (int argc, char ** argv)
 | 
				
			|||||||
					      xmit_to_rank,1,
 | 
										      xmit_to_rank,1,
 | 
				
			||||||
					      (void *)&rbuf[mu][0],
 | 
										      (void *)&rbuf[mu][0],
 | 
				
			||||||
					      recv_from_rank,1,
 | 
										      recv_from_rank,1,
 | 
				
			||||||
					      bytes,mu);
 | 
										      bytes,bytes,mu);
 | 
				
			||||||
	    Grid.StencilSendToRecvFromComplete(requests,mu);
 | 
						    Grid.StencilSendToRecvFromComplete(requests,mu);
 | 
				
			||||||
	    requests.resize(0);
 | 
						    requests.resize(0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -325,7 +325,7 @@ int main (int argc, char ** argv)
 | 
				
			|||||||
					      xmit_to_rank,1,
 | 
										      xmit_to_rank,1,
 | 
				
			||||||
					      (void *)&rbuf[mu+4][0],
 | 
										      (void *)&rbuf[mu+4][0],
 | 
				
			||||||
					      recv_from_rank,1,
 | 
										      recv_from_rank,1,
 | 
				
			||||||
					      bytes,mu+4);
 | 
										      bytes,bytes,mu+4);
 | 
				
			||||||
	    Grid.StencilSendToRecvFromComplete(requests,mu+4);
 | 
						    Grid.StencilSendToRecvFromComplete(requests,mu+4);
 | 
				
			||||||
	    requests.resize(0);
 | 
						    requests.resize(0);
 | 
				
			||||||
	  
 | 
						  
 | 
				
			||||||
@@ -412,7 +412,7 @@ int main (int argc, char ** argv)
 | 
				
			|||||||
	    }
 | 
						    }
 | 
				
			||||||
            int tid = omp_get_thread_num();
 | 
					            int tid = omp_get_thread_num();
 | 
				
			||||||
	    tbytes= Grid.StencilSendToRecvFrom((void *)&xbuf[dir][0], xmit_to_rank,1,
 | 
						    tbytes= Grid.StencilSendToRecvFrom((void *)&xbuf[dir][0], xmit_to_rank,1,
 | 
				
			||||||
					       (void *)&rbuf[dir][0], recv_from_rank,1, bytes,tid);
 | 
										       (void *)&rbuf[dir][0], recv_from_rank,1, bytes,bytes,tid);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	    thread_critical { dbytes+=tbytes; }
 | 
						    thread_critical { dbytes+=tbytes; }
 | 
				
			||||||
	  }
 | 
						  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user