Skip to content

Commit 5cd68fc

Browse files
committed
Fix tolerances
1 parent 27a9fae commit 5cd68fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/fortran/lib/mod_distribs.f90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ subroutine calculate(this, basis, &
323323
itmp1 = 0
324324
tolerances(:) = radius_distance_tol_(:) * &
325325
bond_info(pair_index(is, js))%radius_covalent
326+
tolerances(1) = max( cutoff_min_(1), tolerances(1) )
327+
tolerances(3) = max( cutoff_min_(1), tolerances(3) )
328+
tolerances(2) = min( cutoff_max_(1), tolerances(2) )
329+
tolerances(4) = min( cutoff_max_(1), tolerances(4) )
326330

327331
!------------------------------------------------------------------
328332
! loop over all atoms inside the unit cell

0 commit comments

Comments
 (0)