Skip to content

Commit

Permalink
reduce typewise zbl cutoff from 0.7 to 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
brucefan1983 committed Jul 5, 2024
1 parent 42107ba commit 9e728a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/force/nep3.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ static __global__ void find_force_ZBL(
float rc_outer = zbl.rc_outer;
if (paramb.use_typewise_cutoff) {
// zi and zj start from 1, so need to minus 1 here
rc_outer = min((COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * 0.7f, rc_outer);
rc_outer = min((COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * 0.6f, rc_outer);
rc_inner = rc_outer * 0.5f;
}
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
Expand Down
2 changes: 1 addition & 1 deletion src/force/nep3_multigpu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ static __global__ void find_force_ZBL(
float rc_outer = zbl.rc_outer;
if (paramb.use_typewise_cutoff) {
// zi and zj start from 1, so need to minus 1 here
rc_outer = min((COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * 0.7f, rc_outer);
rc_outer = min((COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * 0.6f, rc_outer);
rc_inner = rc_outer * 0.5f;
}
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
Expand Down
2 changes: 1 addition & 1 deletion src/force/nep3_small_box.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ static __global__ void find_force_ZBL_small_box(
float rc_outer = zbl.rc_outer;
if (paramb.use_typewise_cutoff) {
// zi and zj start from 1, so need to minus 1 here
rc_outer = min((COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * 0.7f, rc_outer);
rc_outer = min((COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * 0.6f, rc_outer);
rc_inner = rc_outer * 0.5f;
}
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
Expand Down
2 changes: 1 addition & 1 deletion src/main_nep/nep3.cu
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ static __global__ void find_force_ZBL(
float rc_outer = zbl.rc_outer;
if (paramb.use_typewise_cutoff) {
// zi and zj start from 1, so need to minus 1 here
rc_outer = min((COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * 0.7f, rc_outer);
rc_outer = min((COVALENT_RADIUS[zi - 1] + COVALENT_RADIUS[zj - 1]) * 0.6f, rc_outer);
rc_inner = rc_outer * 0.5f;
}
find_f_and_fp_zbl(zizj, a_inv, rc_inner, rc_outer, d12, d12inv, f, fp);
Expand Down

0 comments on commit 9e728a7

Please sign in to comment.