Skip to content

Commit

Permalink
pt: fix redundant size assert (deepmodeling#3740)
Browse files Browse the repository at this point in the history
deepmodeling#3738

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Improved the efficiency of computation by removing unnecessary checks.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
CaRoLZhangxy authored May 5, 2024
1 parent 62832e8 commit 2be5f0f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/lmp/pair_deepmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ void PairDeepMD::compute(int eflag, int vflag) {
"centroid/stress/atom command for 9-element atomic virial.");
}
bool do_ghost = true;
assert(sizeof(MPI_Comm) == sizeof(int));
// dpa2 communication
commdata_ = (CommBrickDeepMD *)comm;
double **x = atom->x;
Expand Down

0 comments on commit 2be5f0f

Please sign in to comment.