We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0585acf commit 5cc3069Copy full SHA for 5cc3069
torch_sim/autobatching.py
@@ -367,7 +367,7 @@ def calculate_memory_scaler(
367
volume = torch.abs(torch.linalg.det(state.cell[0])) / 1000
368
else:
369
bbox = state.positions.max(dim=0).values - state.positions.min(dim=0).values
370
- volume = bbox.clamp(min=1.0).prod() / 1000 # min 1 Å for planar molecules
+ volume = bbox.clamp(min=2.0).prod() / 1000 # min 1 Å for planar molecules
371
number_density = state.n_atoms / volume.item()
372
return state.n_atoms * number_density
373
raise ValueError(
0 commit comments