mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-29 06:35:28 -04:00
Fix segfault when using QM/MM added charges
Added-charge only periodic potential data should be used instead of whole MM-part data in corresponding parts of QM/MM code. Fixes #985.
This commit is contained in:
parent
658a154aac
commit
5eedb3c18e
2 changed files with 2 additions and 2 deletions
|
|
@ -294,7 +294,7 @@ CONTAINS
|
|||
cube_info, para_env, eps_mm_rspace, qmmm_env%added_charges%pgfs, auxbas_grid, &
|
||||
coarser_grid, qmmm_env%added_charges%potentials, &
|
||||
mm_cell=mm_cell, dOmmOqm=qmmm_env%dOmmOqm, periodic=qmmm_env%periodic, &
|
||||
per_potentials=qmmm_env%per_potentials, par_scheme=qmmm_env%par_scheme, &
|
||||
per_potentials=qmmm_env%added_charges%per_potentials, par_scheme=qmmm_env%par_scheme, &
|
||||
qmmm_spherical_cutoff=qmmm_env%spherical_cutoff, shells=shells)
|
||||
END IF
|
||||
IF (qmmm_env%added_shells%num_mm_atoms .GT. 0) THEN
|
||||
|
|
|
|||
|
|
@ -540,7 +540,7 @@ CONTAINS
|
|||
qmmm_env%added_charges%mm_atom_index, qmmm_env%added_charges%num_mm_atoms, &
|
||||
cube_info, para_env, eps_mm_rspace, auxbas_grid, coarser_grid, qmmm_env%added_charges%pgfs, &
|
||||
qmmm_env%added_charges%potentials, Forces_added_charges, aug_pools, mm_cell, &
|
||||
qmmm_env%dOmmOqm, qmmm_env%periodic, qmmm_env%per_potentials, iw, qmmm_env%par_scheme, &
|
||||
qmmm_env%dOmmOqm, qmmm_env%periodic, qmmm_env%added_charges%per_potentials, iw, qmmm_env%par_scheme, &
|
||||
qmmm_env%spherical_cutoff, shells)
|
||||
END IF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue