Merge release-4-6 into master
[alexxy/gromacs.git] / src / gromacs / legacyheaders / types / inputrec.h
index a3d9c6fd7fd7c327eb62a2810ec4ee3124c6bddb..0a05ddff51ed165967b93ab141e01d2a00440c78 100644 (file)
@@ -130,12 +130,20 @@ typedef struct {
 
 typedef struct {
   int  nstdhdl;          /* The frequency for calculating dhdl           */
-  double init_lambda;    /* fractional value of lambda (usually will use init_fep_state, this will only be for slow growth, and for legacy free energy code)   */
+  double init_lambda;    /* fractional value of lambda (usually will use
+                            init_fep_state, this will only be for slow growth,
+                            and for legacy free energy code. Only has a
+                            valid value if positive)   */
   int init_fep_state;    /* the initial number of the state                   */
   double delta_lambda;  /* change of lambda per time step (fraction of (0.1) */
   gmx_bool bPrintEnergy; /* Whether to print the energy in the dhdl           */
   int  n_lambda;         /* The number of foreign lambda points               */
   double **all_lambda;   /* The array of all lambda values                    */
+  int lambda_neighbors;  /* The number of neighboring lambda states to
+                            calculate the energy for in up and down directions
+                            (-1 for all) */
+  int lambda_start_n;    /* The first lambda to calculate energies for */
+  int lambda_stop_n;     /* The last lambda +1 to calculate energies for */
   real sc_alpha;         /* free energy soft-core parameter                   */
   int  sc_power;         /* lambda power for soft-core interactions           */
   real sc_r_power;          /* r power for soft-core interactions                */