ianhinder / Kranc

A Mathematica package for generating code for solving time dependent partial differential equations
http://kranccode.org
GNU General Public License v2.0
28 stars 10 forks source link

Allocate storage only for those variable that are used #63

Open eschnett opened 12 years ago

eschnett commented 12 years ago

If the variables used in a particular formulation depends on a run-time parameter, then storage should be allocated (and evolution/boundary conditions registered) only if this parameter is set. For example, this would allow us to efficiently combine the BSSN and CCZ4 formulations, or to switch off A (lapse-dot) if it is not used.