func (s *simMain) calcFlows(c runtime.Coordinator, dt float64) { s.Curr["rate"] = c.Data(s, "rate") s.Curr["in"] = ((s.Curr["rate"]) * (s.Curr["accum"])) }
func (s *simMain) calcInitial(c runtime.Coordinator, dt float64) { s.Curr["accum"] = c.Data(s, "accum") s.Curr["rate"] = c.Data(s, "rate") }