mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-31 20:14:32 +00:00 
			
		
		
		
	more FFt optimisations
This commit is contained in:
		| @@ -244,7 +244,10 @@ namespace Grid { | |||||||
|             pokeLocalSite(s,pgbuf,cbuf); |             pokeLocalSite(s,pgbuf,cbuf); | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|         result = Cshift(result,dim,L); |         if (p != processors[dim] - 1) | ||||||
|  |         { | ||||||
|  |           result = Cshift(result,dim,L); | ||||||
|  |         } | ||||||
|       } |       } | ||||||
|        |        | ||||||
|       // Loop over orthog coords |       // Loop over orthog coords | ||||||
| @@ -287,10 +290,10 @@ namespace Grid { | |||||||
|           cgbuf = clbuf; |           cgbuf = clbuf; | ||||||
|           cgbuf[dim] = clbuf[dim]+L*pc; |           cgbuf[dim] = clbuf[dim]+L*pc; | ||||||
|           peekLocalSite(s,pgbuf,cgbuf); |           peekLocalSite(s,pgbuf,cgbuf); | ||||||
|           s = s * div; |  | ||||||
|           pokeLocalSite(s,result,clbuf); |           pokeLocalSite(s,result,clbuf); | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  |       result = result*div; | ||||||
|        |        | ||||||
|       // destroying plan |       // destroying plan | ||||||
|       FFTW<scalar>::fftw_destroy_plan(p); |       FFTW<scalar>::fftw_destroy_plan(p); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user