Skip to content

ForceLJ::compute_fullneigh #3

@IbrahimAlKharusi

Description

@IbrahimAlKharusi

Hi there ,,,

It may there is an issue with the ForceLJ::compute_fullneigh function in computing on the following lines

f[iPAD+0]+=fix
f[i
PAD+1]+=fiy
f[i*PAD+2]+=fiz

they are should be protected similarly to half neighbour list force computation by using
#pragma omp atomic
f[iPAD+0]+=fix
#pragma omp atomic
f[i
PAD+1]+=fiy
#pragma omp atomic
f[i*PAD+2]+=fiz

I know this have been highlighted as non-threaded function but still with mpi one processor it shows the different results for the same physical configuration ... you may compare the results between threaded halfneighbor and the fullneighbor results are different ...

the other option ofcourse to create threaded function for fullneighbor as have been done for halfneighbor.

please confirm if should be fixed or you have another opinion on this point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions