44#include < istream>
55
66namespace tinker {
7- // / \ingroup ff
7+ // / \addtogroup ff
8+ // / \{
9+
810void nData (RcOp);
9- // / \ingroup ff
1011void massData (RcOp);
11- // / \ingroup ff
1212void xyzData (RcOp);
1313
14- // / \ingroup ff
15- // / \brief Update #x, #y, #z by #xpos, #ypos, and #zpos.
14+ // / Update #x, #y, #z by #xpos, #ypos, and #zpos.
1615// / If #xpos etc. are only aliases, return directly.
1716void copyPosToXyz ();
1817
19- // / \ingroup ff
20- // / \brief Update #x, #y, #z by #xpos, #ypos, and #zpos.
18+ // / Update #x, #y, #z by #xpos, #ypos, and #zpos.
2119// / If #xpos etc. are only aliases, return directly.
22- // / \param refreshNBList If `true`, refresh the neighbor lists by the end.
20+ // / \param refreshNBList If `true`, refresh the neighbor lists at the end.
2321void copyPosToXyz (bool refreshNBList);
2422
25- // / \ingroup ff
26- // / \brief Finds the geometric center of each molecule and translate any stray
23+ // / Finds the geometric center of each molecule and translate any stray
2724// / molecules back into the periodic box on GPU.
2825// / \note
2926// / - Updating #x, #y, #z is the goal.
@@ -32,67 +29,43 @@ void copyPosToXyz(bool refreshNBList);
3229// / - Tinker uses centers of mass.
3330void bounds ();
3431
35- // / \ingroup ff
3632void readFrameCopyinToXyz (std::istream& input, int & done);
37- }
3833
3934// ====================================================================//
4035// //
4136// Global Variables //
4237// //
4338// ====================================================================//
4439
45- namespace tinker {
46- // / \ingroup ff
47- // / \brief Number of atoms.
48- TINKER_EXTERN int padded_n;
49- // / \ingroup ff
50- // / \brief Number of atoms padded by #WARP_SIZE.
51- // / \see WARP_SIZE
52- TINKER_EXTERN int n;
53- // / \ingroup ff
54- // / \brief Number of the trajectory frames.
55- TINKER_EXTERN int trajn;
40+ TINKER_EXTERN int padded_n; // / \brief Number of atoms padded by #WARP_SIZE.
41+ TINKER_EXTERN int n; // / \brief Number of atoms.
42+ TINKER_EXTERN int trajn; // / \brief Number of the trajectory frames.
43+
44+ TINKER_EXTERN real* x; // /< Current coordinates used in energy evaluation and neighbor lists.
45+ TINKER_EXTERN real* y; // /< Current coordinates used in energy evaluation and neighbor lists.
46+ TINKER_EXTERN real* z; // /< Current coordinates used in energy evaluation and neighbor lists.
47+ TINKER_EXTERN real* trajx; // /< Coordinates of all the trajectory frames.
48+ TINKER_EXTERN real* trajy; // /< Coordinates of all the trajectory frames.
49+ TINKER_EXTERN real* trajz; // /< Coordinates of all the trajectory frames.
5650
57- // / \ingroup ff
58- // / \{
59- // / \var x
60- // / \brief Current coordinates used in energy evaluation and neighbor lists.
61- // / \var y
62- // / \copydoc x
63- // / \var z
64- // / \copydoc x
65- // /
66- // / \var trajx
67- // / \brief Coordinates of all the trajectory frames.
68- // / \var trajy
69- // / \copydoc trajx
70- // / \var trajz
71- // / \copydoc trajx
72- // /
7351// / \var xpos
74- // / \brief Coordinates used in integrators.
52+ // / Coordinates used in integrators.
7553// / \note
7654// / - New arrays will be allocated only if `sizeof(pos_prec) > sizeof(real)`,
7755// / otherwise, they will be aliases of #x, #y, and #z.
78- // / - Whenever #xpos, #ypos, #zpos get updated by integrators, barostats etc. ,
56+ // / - Whenever #xpos, #ypos, #zpos get updated by the integrator ,
7957// / #x, #y, #z must be updated immediately.
8058// / \see pos_prec
8159// / \see real
8260// / \var ypos
8361// / \copydoc xpos
8462// / \var zpos
8563// / \copydoc xpos
86- // / \}
87- TINKER_EXTERN real *x, *y, *z;
88- TINKER_EXTERN real *trajx, *trajy, *trajz;
8964TINKER_EXTERN pos_prec *xpos, *ypos, *zpos;
9065static_assert (sizeof (pos_prec) >= sizeof (real), " Type pos_prec cannot be shorter than type real." );
9166
92- // / \ingroup ff
93- // / \brief Atomic mass.
94- TINKER_EXTERN double * mass;
95- // / \ingroup ff
96- // / \brief Inversed atomic mass.
97- TINKER_EXTERN double * massinv;
67+ TINKER_EXTERN double * mass; // /< Atomic mass.
68+ TINKER_EXTERN double * massinv; // /< Inversed atomic mass.
69+
70+ // / \}
9871}
0 commit comments