Skip to content

Commit d043e81

Browse files
committed
major changes in elec, pol, ligand structures, unfinished
1 parent e52ae11 commit d043e81

11 files changed

Lines changed: 3260 additions & 419 deletions

File tree

efpmd/src/main.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,12 @@ static struct efp *create_efp(const struct cfg *cfg, const struct sys *sys)
305305
else
306306
add_potentials(efp, cfg, sys);
307307

308-
for (size_t i = 0; i < sys->n_frags; i++)
309-
check_fail(efp_add_fragment(efp, sys->frags[i].name));
308+
for (size_t i = 0; i < sys->n_frags; i++) {
309+
if (i == opts.ligand)
310+
check_fail(efp_add_ligand(efp, sys->frags[i].name));
311+
else
312+
check_fail(efp_add_fragment(efp, sys->frags[i].name));
313+
}
310314

311315
if (sys->n_charges > 0) {
312316
double q[sys->n_charges];

0 commit comments

Comments
 (0)