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

Simplify storage statements in schedule.ccl #60

Open ianhinder opened 12 years ago

ianhinder commented 12 years ago

The current schedule.ccl contains blocks like this:

if (rhs_timelevels == 1)
{
  STORAGE: ML_curvrhs[1]
}
if (rhs_timelevels == 2)
{
  STORAGE: ML_curvrhs[2]
}

This should be changed to

  STORAGE: ML_curvrhs[rhs_timelevels]