torchmd-net icon indicating copy to clipboard operation
torchmd-net copied to clipboard

Cell list Distance module does not support triclinic domains

Open RaulPPelaez opened this issue 1 year ago • 4 comments

Current implementation of the cell list will fail if the provided box vectors do not represent a rectangular domain: https://github.com/torchmd/torchmd-net/blob/e20876ff79fe952db25e5fc55cc051a919ef218f/torchmdnet/neighbors/neighbors_cuda_cell.cuh#L351-L354

Supporting triclinic requires modifying the cell traversal code: https://github.com/torchmd/torchmd-net/blob/e20876ff79fe952db25e5fc55cc051a919ef218f/torchmdnet/neighbors/neighbors_cuda_cell.cuh#L331-L332

similarly as how it is done here: https://github.com/openmm/openmm/blob/master/platforms/reference/src/SimTKReference/ReferenceNeighborList.cpp#L154-L183 This would probably make the current traversal much slower, so maybe it is a good idea to have different kernels for rectangular and triclinic.

RaulPPelaez avatar May 29 '23 09:05 RaulPPelaez

Is this solved?

guillemsimeon avatar Jun 26 '23 06:06 guillemsimeon

No, but I have it in my list.

RaulPPelaez avatar Jun 26 '23 07:06 RaulPPelaez

Should I close this, @RaulPPelaez ?

guillemsimeon avatar Jan 18 '24 23:01 guillemsimeon

No, leave it open. Have not got around it yet.

RaulPPelaez avatar Jan 19 '24 08:01 RaulPPelaez