Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:fix LAMMPS MPI tests with mpi4py 4.0.0 (deepmodeling#4032)
The previous code works with mpi4py<4 but fails with mpi4py 4.0.0. I don't know what breaking change was made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Optimized potential energy calculation in the LAMMPS simulation by restricting evaluation to the master process, reducing unnecessary computations. - **Chores** - Improved control flow for better performance in parallel execution contexts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]> (cherry picked from commit 1e72236)
- Loading branch information