Issue 63 in pencil-code: pc_read_var inefficient

1 view
Skip to first unread message

penci...@googlecode.com

unread,
Jun 5, 2011, 11:40:32 AM6/5/11
to pencil-co...@googlegroups.com
Status: Accepted
Owner: Bourdin.KIS
Labels: Type-Enhancement Priority-High

New issue 63 by Bourdin.KIS: pc_read_var inefficient
http://code.google.com/p/pencil-code/issues/detail?id=63

Usage of 'pc_read_var' in IDL consumes double memory than actually needed.
This makes reading of variables a pain for lage setups.

First, an array 'varcontent' is setup with allocated memory for reading in
the desired variables.
Then, an object is created using the filled varcontent array.
During that process the memory is allocated double.

To be more efficient, the target/output object should be created and the
data should be read directly into the object.

Reply all
Reply to author
Forward
0 new messages