Skip to content

Commit ab2610e

Browse files
committed
pbx for xr
1 parent 449b4b1 commit ab2610e

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

bin/efpmd

-396 KB
Binary file not shown.

include/efp.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ struct efp_opts {
150150
int enable_cutoff;
151151
/** Cutoff distance for fragment-fragment interactions. */
152152
double swf_cutoff;
153+
/** Enable ligand-fragment energy decomposition from total system */
154+
int enable_pairwise;
155+
/** Index of ligand for enable_pairwise; default = 0; */
156+
int ligand;
157+
/** Prints fragment coordinates rearranged around ligand. Applicable for periodic simulations only. */
158+
int print_pbc;
153159
};
154160

155161
/** EFP energy terms. */
@@ -1047,6 +1053,18 @@ void efp_shutdown(struct efp *efp);
10471053
*/
10481054
const char *efp_result_to_string(enum efp_result res);
10491055

1056+
/**
1057+
* Get the interaction energies of ligand-fragment pairs
1058+
*
1059+
* \param[in] efp The efp structure.
1060+
*
1061+
* \param[out] total energy and energy components of each ligand-fragment pair
1062+
*
1063+
*/
1064+
enum efp_result efp_get_pairwise_energy(struct efp *efp,
1065+
struct efp_energy *pair_energies);
1066+
1067+
10501068
#ifdef __cplusplus
10511069
} /* extern "C" */
10521070
#endif

src/xr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,8 @@ efp_frag_frag_xr(struct efp *efp, size_t frag_i, size_t frag_j, double *lmo_s,
527527
struct swf swf = efp_make_swf(efp, fr_i, fr_j, 1);
528528
// skip calculations if distance between fragments is too big...
529529
if (swf.swf == 0.0) {
530+
*exr_out = 0.0;
531+
*ecp_out = 0.0;
530532
return;
531533
}
532534
else {

0 commit comments

Comments
 (0)