Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Anyang Peng authored and Anyang Peng committed Jan 27, 2024
1 parent 87620c9 commit 1797c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepmd_pt/model/model/pair_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _check_table_upper_boundary(self):
[0.015 0. 1. 1.5 ]
[0.02 0. 0.5 0.75 ]
[0.025 0. 0. 0. ]]
----------------------------------------------
table = [[0.005 1. 2. 3. ]
Expand Down Expand Up @@ -178,7 +178,7 @@ def _check_table_upper_boundary(self):
)
# if table values decay to `0` at rcut, do nothing

# if table values do not decay to `0` before rcut, pad table with `0`s.
# if table values decay to `0` before rcut, pad table with `0`s.
elif self.rcut > upper:
pad_zero = np.zeros((rcut_idx - upper_idx,4))
pad_zero[:,0] = np.linspace(upper + increment, increment*(rcut_idx+1), rcut_idx-upper_idx)
Expand Down

0 comments on commit 1797c89

Please sign in to comment.