*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2009, The GROMACS Development Team.
- * Copyright (c) 2010, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "gmxpre.h"
#include <math.h>
-#include "types/simple.h"
+#include "gromacs/legacyheaders/types/simple.h"
-#include "vec.h"
-#include "smalloc.h"
+#include "gromacs/math/vec.h"
+#include "gromacs/utility/smalloc.h"
-#include "partdec.h"
-#include "network.h"
-#include "physics.h"
-#include "genborn.h"
+#include "gromacs/legacyheaders/network.h"
+#include "gromacs/math/units.h"
+#include "gromacs/legacyheaders/genborn.h"
#include "genborn_allvsall.h"
gmx_genborn_t * born,
gmx_localtop_t * top,
real * x,
- t_commrec * cr,
void * work)
{
gmx_allvsallgb2_data_t *aadata;
real term, prod, icf4, icf6, gpi2, factor, sinq;
natoms = mdatoms->nr;
- ni0 = mdatoms->start;
- ni1 = mdatoms->start+mdatoms->homenr;
+ ni0 = 0;
+ ni1 = mdatoms->homenr;
factor = 0.5*ONE_4PI_EPS0;
n = 0;
born->gpol_still_work[i] += gpi;
}
- /* Parallel summations */
- if (PARTDECOMP(cr))
- {
- gmx_sum(natoms, born->gpol_still_work, cr);
- }
+ /* Parallel summations would go here if ever implemented with DD */
/* Calculate the radii */
for (i = 0; i < natoms; i++)
int gb_algorithm,
gmx_localtop_t * top,
real * x,
- t_commrec * cr,
void * work)
{
gmx_allvsallgb2_data_t *aadata;
real rad, min_rad;
natoms = mdatoms->nr;
- ni0 = mdatoms->start;
- ni1 = mdatoms->start+mdatoms->homenr;
+ ni0 = 0;
+ ni1 = mdatoms->homenr;
n = 0;
prod = 0;
born->gpol_hct_work[i] += sum_ai;
}
- /* Parallel summations */
- if (PARTDECOMP(cr))
- {
- gmx_sum(natoms, born->gpol_hct_work, cr);
- }
+ /* Parallel summations would go here if ever implemented with DD */
if (gb_algorithm == egbHCT)
{
real * dadx;
natoms = mdatoms->nr;
- ni0 = mdatoms->start;
- ni1 = mdatoms->start+mdatoms->homenr;
+ ni0 = 0;
+ ni1 = mdatoms->homenr;
dadx = fr->dadx;
aadata = (gmx_allvsallgb2_data_t *)work;