SS design flaw note, may apply to AHH :

1 view
Skip to first unread message

Michael Rule

unread,
Jul 1, 2010, 11:50:44 AM7/1/10
to ahh-d...@googlegroups.com
variable initialation is more closely tied to memory allocation than it is
to the abstract definition of a state variable.

Therefore, it makes more sense to explicitely initialize state
variables after memory allocation,
rather than defining an abstrction functional definition of initial
conditions, which is what we do currently.

Cyrus Omar

unread,
Jul 1, 2010, 12:07:26 PM7/1/10
to ahh-d...@googlegroups.com
In cl.egans, there is an allocation phase that sets aside the required amount of memory and then an initialization phase per division to initialize that buffer.


--
You received this message because you are subscribed to the Google Groups "ahh-discuss" group.
To post to this group, send email to ahh-d...@googlegroups.com.
To unsubscribe from this group, send email to ahh-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ahh-discuss?hl=en.


Michael Rule

unread,
Jul 1, 2010, 12:10:51 PM7/1/10
to ahh-d...@googlegroups.com
how does the user define what happens in the initialization phase ?

Cyrus Omar

unread,
Jul 1, 2010, 12:14:23 PM7/1/10
to ahh-d...@googlegroups.com
You can specify a callback that receives the buffer that needs to be initialized and you can do whatever you want with it.
Reply all
Reply to author
Forward
0 new messages