[Users] extent in HyperSlab
Thomas Radke
tradke at aei.mpg.de
Tue Dec 19 03:16:19 CST 2006
jtao at cct.lsu.edu wrote:
> I am in a process of converting a code to use the new
> HyperSlab interface. The only thing I am not sure at
> this moment is the argument extent in the function
> Hyperslab_GlobalMappingByIndex (...).
>
> I believe it is corresponding to the argument
> length in the old function Hyperslab_GetHyperslab(...).
>
> In a situation that the length is unknown, one can set
> length = -1 to let the function to determine what it should be.
> However in the new interface, one has no such a choice (please
> correct me if I am wrong). Are there any recommended solutions
> to deal with an unknown extent ?
Hi Jian,
why would the extent be unknown ? I guess you know which grid variables
you want to hyperslab, so you can use CCTK_GroupgshVI() to query the
global shape of their group and pass that information as extent vector
into Hyperslab_GlobalMappingByIndex(). That's how it's implemented in
CactusBase/IOASCII and CactusExamples/SampleIO.
--
Cheers, Thomas.
More information about the Users
mailing list