[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ESPResSo-devel] Number of particles on a local processor
From: |
Limbach, Hans Joerg, LAUSANNE, NRC-FS |
Subject: |
RE: [ESPResSo-devel] Number of particles on a local processor |
Date: |
Mon, 8 Oct 2007 16:17:35 +0200 |
Hi Ulf,
To my knowledge it is true that there is no function like this at the moment.
The information itself is stored on the masternode in the array: particle_node
(dimension max_seen_particle). This array contains the number of the node on
which particle i is located. So I guess the most simple thing would be to write
a small routine in particle_data.c which runs over this array and gives the
information you need. There is also a standard way to check wether the array
particle_node has been built already (see e.g. part_print_all).
Greetings,
Hanjo
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Ulf Schiller
> Sent: jeudi, 4. octobre 2007 11:54
> To: ESPResSo developers' mailing list
> Subject: [ESPResSo-devel] Number of particles on a local processor
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> has anybody ever thought about an efficient way of testing
> whether there are any particles (counting also ghosts) on the
> local processor? I want to avoid some overhead in systems
> without MD particles, e.g. plain lattice Boltzmann fluid. As
> far as I see, there's at the moment no information about the
> number of particles currently on a processor (besides the
> possibility to count with cells_get_n_particles()). Am I right?
>
> Cheers,
> Ulf
>
> - --
> Ulf D. Schiller * Room 1.404 * Phone +49 6131 379-481
> Max Planck Institute for Polymer Research Theory Group
> D-55128 Mainz, Germany 50° 0' N, 008° 16' E
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
>
> iD8DBQFHBLgotqL0QpvXQjERAhu5AKCct2piY9GvVTr7l0OsGI5j+HaydwCgtYbb
> KZbVV4Olz38p+V0/i27GdCQ=
> =Ofeq
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> ESPResSo-devel mailing list
> address@hidden
> https://fias.uni-frankfurt.de/mailman/listinfo/espresso-devel
>