Hi, Should I be worried about function call overhead if make calls like AOXXXXToYYYY(ao, 1, &node) for each node when setting up the linear system? If so, is there an array where AO internally saves the mapping information that I can access or do I need to first save the mapping once and reuse it? Thanks, Mohammad
On Wed, Feb 22, 2012 at 16:52, Mohammad Mirzadeh <[email protected]> wrote:
Should I be worried about function call overhead if make calls like AOXXXXToYYYY(ao, 1, &node) for each node when setting up the linear system? If so, is there an array where AO internally saves the mapping information that I can access or do I need to first save the mapping once and reuse it?
If you only need to do it once, the function call overhead should not be a big deal. If you need to apply the mapping frequently, it's better to do it in batches.
Thanks Jed. On Wed, Feb 22, 2012 at 2:59 PM, Jed Brown <[email protected]> wrote:
On Wed, Feb 22, 2012 at 16:52, Mohammad Mirzadeh <[email protected]>wrote:
Should I be worried about function call overhead if make calls like AOXXXXToYYYY(ao, 1, &node) for each node when setting up the linear system? If so, is there an array where AO internally saves the mapping information that I can access or do I need to first save the mapping once and reuse it?
If you only need to do it once, the function call overhead should not be a big deal. If you need to apply the mapping frequently, it's better to do it in batches.
participants (2)
-
Jed Brown -
Mohammad Mirzadeh