devito icon indicating copy to clipboard operation
devito copied to clipboard

Redundant subdimensions being created when finalizing subdomains

Open rhodrin opened this issue 4 years ago • 0 comments

When attaching M SubDomain's to an N-dimensional grid M*N SubDimension's are currently being created, but often some SubDimension's can, and should, be re-used.

Therefore, during the finalization of a SubDomain a check should be carried out to see if a previously created SubDimension can be used. An easy way to this would be to at, e.g., a grid._subdimensions property which is checked against and appended too during the finalization of each SubDomain.

rhodrin avatar Feb 24 '20 16:02 rhodrin