h5part AT lists.psi.ch
Subject: H5Part development and discussion
List archive
- From: Achim Gsell <achim AT cybercity.ch>
- To: h5part AT lists.psi.ch
- Subject: Re: [H5part] H5PartGetNumParticles
- Date: Sat, 2 Dec 2006 00:19:12 +0100
- List-archive: <https://lists.web.psi.ch/pipermail/h5part/>
- List-id: H5Part development and discussion <h5part.lists.psi.ch>
On Friday 01 December 2006 23:23, Kurt Stockinger wrote:
> Hi,
>
> I just noticed that H5PartGetNumParticles() seems to return
> the wrong number of particles. It's always off by one, i.e.
> n-1 rather than n. I've tested the program H5PartTest with 4
> processes and 5 particles each.
The bug seems to be in the function H5PartSetView(), not in
H5PartGetNumParticles()! The view has
end - start
particles. If we have 5 particles:
start = 0
end = 4
end - start = 4
The "memshape" is created with
dims = end - start
i.e. 4 particles.
I found this odd behavior last summer, but forgot to ask John
whether this is intentional (which I cannot imagine) or I miss
something and to fix it if not. May be it is time to start
using a bugtracker (we can use Bugzilla @svn.psi.ch).
cheers
Achim
- [H5part] H5PartGetNumParticles, Kurt Stockinger, 12/01/2006
- Re: [H5part] H5PartGetNumParticles, John Shalf, 12/01/2006
- Re: [H5part] H5PartGetNumParticles, Kurt Stockinger, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, John Shalf, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, Achim Gsell, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, John Shalf, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, Achim Gsell, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, Kurt Stockinger, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, Achim Gsell, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, John Shalf, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, Kurt Stockinger, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, Achim Gsell, 12/02/2006
- Re: [H5part] H5PartGetNumParticles, John Shalf, 12/01/2006
Archive powered by MHonArc 2.6.19.