Beispiel #1
0
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"]))
}
Beispiel #2
0
func (s *simMain) calcInitial(c runtime.Coordinator, dt float64) {
	s.Curr["accum"] = c.Data(s, "accum")
	s.Curr["rate"] = c.Data(s, "rate")
}