-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging Add Electrostatics - 2 #74
Comments
Can you double check that the Something like (didn't test this, you might have to iron out some typos or issues): rank_indices = indices
receive_buffer = comm.gather(rank_indices, root=0)
gathered_rank_indices = None
if comm.Get_rank() == 0:
gathered_rank_indices = np.concatenate(receive_buffer)
concatenated_indices = comm.bcast(gathered_rank_indices, root=0)
sorted_concatenated_indices = np.sort(concatenated_indices)
assert (sorted_concatenated_indices == np.array(list(range(config.n_particles)), dtype=int)).all() |
Hi Morten, thanks, I have checked using the following code, and the indices seem normal rank_indices = indices
receive_buffer = comm.gather(rank_indices, root=0)
gathered_rank_indices = None
if comm.Get_rank() == 0:
print('here----- to check')
gathered_rank_indices = np.concatenate(receive_buffer)
concatenated_indices = comm.bcast(gathered_rank_indices, root=0)
sorted_concatenated_indices = np.sort(concatenated_indices)
np.testing.assert_array_equal(sorted_concatenated_indices, np.arange( config.n_particles, dtype=int )) ##<--- check |
This should be all taken care of now. |
---------------continue from #72 ------------------
add the force and energy contribution from _q
an error:It seems that the elec_forces are not decomposed expectedly; Hi Morten, @mortele, any quick tip ? (I am wondering whether this is because the layout used in the calculations.)dd inside MD LOOP
charges I/O in h5 files
The text was updated successfully, but these errors were encountered: