#include "gromacs/utility/real.h"
/*! \brief Flag to select user tables for make_tables */
-#define GMX_MAKETABLES_FORCEUSER (1<<0)
+#define GMX_MAKETABLES_FORCEUSER (1 << 0)
/*! \brief Flag to only make 1,4 pair tables for make_tables */
-#define GMX_MAKETABLES_14ONLY (1<<1)
+#define GMX_MAKETABLES_14ONLY (1 << 1)
/*! \brief Enumerated type to describe the interaction types in a table */
-enum {
- etiCOUL, //!< Coulomb
- etiLJ6, //!< Dispersion
- etiLJ12, //!< Repulsion
- etiNR //!< Total number of interaction types
+enum
+{
+ etiCOUL, //!< Coulomb
+ etiLJ6, //!< Dispersion
+ etiLJ12, //!< Repulsion
+ etiNR //!< Total number of interaction types
};
/*! \brief Function pointer to calculate the grid contribution for coulomb/LJ
* \param v_lr Pointer to function calculating real-space grid contribution
* \returns a set of Ewald correction tables
*/
-EwaldCorrectionTables
-generateEwaldCorrectionTables(int numPoints,
- double tableScaling,
- real beta,
- real_space_grid_contribution_computer v_lr);
+EwaldCorrectionTables generateEwaldCorrectionTables(int numPoints,
+ double tableScaling,
+ real beta,
+ real_space_grid_contribution_computer v_lr);
/*! \brief Compute scaling for the Ewald quadratic spline tables.
*
* \param generateVdwTables Take the spacing for Van der Waals Ewald corrections into account
* \return The scaling factor in units 1/nm
*/
-real ewald_spline3_table_scale(const interaction_const_t &ic,
- bool generateCoulombTables,
- bool generateVdwTables);
+real ewald_spline3_table_scale(const interaction_const_t& ic, bool generateCoulombTables, bool generateVdwTables);
/*! \brief Return the real space grid contribution for Ewald
*
*
* \return Pointer to inner loop table structure
*/
-t_forcetable *make_tables(FILE *fp,
- const interaction_const_t *ic,
- const char *fn, real rtab, int flags);
+t_forcetable* make_tables(FILE* fp, const interaction_const_t* ic, const char* fn, real rtab, int flags);
/*! \brief Return a table for bonded interactions,
*
* \param angle Type of angle: bonds 0, angles 1, dihedrals 2
* \return New bonded table datatype
*/
-bondedtable_t make_bonded_table(FILE *fplog, const char *fn, int angle);
+bondedtable_t make_bonded_table(FILE* fplog, const char* fn, int angle);
/*! \brief Construct and return tabulated dispersion and repulsion interactions
*
* Returns pointer owning nothing when tabfn=nullptr.
*/
std::unique_ptr<t_forcetable>
-makeDispersionCorrectionTable(FILE *fp, const interaction_const_t *ic,
- real rtab, const char *tabfn);
+makeDispersionCorrectionTable(FILE* fp, const interaction_const_t* ic, real rtab, const char* tabfn);
-#endif /* GMX_TABLES_FORCETABLE_H */
+#endif /* GMX_TABLES_FORCETABLE_H */