mirror of
				https://igit.ific.uv.es/alramos/latticegpu.jl.git
				synced 2025-10-31 14:45:45 +01:00 
			
		
		
		
	Added option to save memory
This commit is contained in:
		
					parent
					
						
							
								0587e5ffea
							
						
					
				
			
			
				commit
				
					
						879ca7dab4
					
				
			
		
					 5 changed files with 152 additions and 153 deletions
				
			
		|  | @ -14,7 +14,7 @@ module Space | |||
| 
 | ||||
| import Base.show | ||||
| 
 | ||||
| struct SpaceParm{N,M} | ||||
| struct SpaceParm{N,M,D} | ||||
|     ndim::Int64 | ||||
|     iL::NTuple{N,Int64} | ||||
|     npls::Int64 | ||||
|  | @ -50,7 +50,8 @@ struct SpaceParm{N,M} | |||
|             end | ||||
|         end | ||||
| 
 | ||||
|         return new{N,M}(N, x, M, tuple(pls...), y, | ||||
|         D = prod(y) | ||||
|         return new{N,M,D}(N, x, M, tuple(pls...), y, | ||||
|                         tuple(yS...), tuple(r...), tuple(rS...), prod(y), prod(r)) | ||||
|     end | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue