xnn.ffnn.models.amoeba_ewald.fft_mesh_size#

xnn.ffnn.models.amoeba_ewald.fft_mesh_size(n, minimum=16)[source]#

The smallest even size of at least n and minimum whose prime factors are 2, 3 and 5 (Tinker rounds a requested mesh up the same way).

Parameters:
  • n (int) – The requested number of mesh points along one axis.

  • minimum (int, optional) – The smallest mesh, by default 16.

Returns:

The mesh size.

Return type:

int