Added option to save memory

This commit is contained in:
Alberto Ramos 2021-09-24 15:49:53 +02:00
parent 0587e5ffea
commit 879ca7dab4
5 changed files with 152 additions and 153 deletions

View file

@ -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