Skip to content

Commit cdca728

Browse files
committed
Review doc: ff
1 parent 09e1bfc commit cdca728

File tree

9 files changed

+120
-212
lines changed

9 files changed

+120
-212
lines changed

.gitattributes

Lines changed: 0 additions & 36 deletions
This file was deleted.

.gitignore

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,45 @@
1-
# Qt Creator
2-
CMakeLists.txt.user
1+
## Tinker9 Project
2+
3+
# bin
4+
bin/*
5+
bin*/*
6+
7+
# build
8+
build
9+
build/*
10+
build*/*
311

4-
# docker
12+
# Docker
513
docker/Dockerfile*
614
docker/*.dockerfile
715

8-
# macOS
9-
.DS_Store
10-
._.DS_Store
16+
# Example
17+
example/*.arc
18+
example/*.dyn
19+
20+
# Manual
21+
doc/manual/_build/*
1122

1223
# Wiki
1324
*.wiki
1425
*.wiki/*
1526

16-
# example
17-
example/*.arc
18-
example/*.dyn
1927

20-
# Manual
21-
doc/manual/_build/*
28+
## OS
29+
30+
# macOS
31+
.DS_Store
32+
._.DS_Store
33+
34+
35+
## Text Editors and IDEs
36+
37+
# CLion
38+
.idea
39+
.idea/*
40+
41+
# gdb
42+
*.out
2243

2344
# Nsight
2445
Debug/*
@@ -27,25 +48,12 @@ Release/*
2748
.project
2849
.settings/*
2950

30-
# CLion
31-
.idea
32-
.idea/*
51+
# Qt Creator
52+
CMakeLists.txt.user
3353

3454
# VSCode
3555
.vscode
3656
.vscode/*
3757

38-
# bin
39-
bin/*
40-
bin*/*
41-
42-
# build
43-
build
44-
build/*
45-
build*/*
46-
4758
# vi
4859
*.swp
49-
50-
# gdb
51-
*.out

doc/doc.h

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
* \defgroup egv Energy
3232
* \brief Energy, gradient, virial tensor, and number of interactions
3333
*
34+
* \defgroup ff Force Fields
35+
* \brief Shared modules across force fields calculation.
36+
*
3437
* \defgroup bonded Valence
3538
* \brief Valence potential energies
3639
*
@@ -50,43 +53,34 @@
5053
* \ingroup bonded
5154
* \brief Urey-Bradley term
5255
*
53-
* \defgroup torsion Torsion
56+
* \defgroup tors Torsion
5457
* \ingroup bonded
5558
* \brief Torsion, improper torsion, improper dihedral, Pi-orbital torsion coupling,
5659
* stretch-torsion coupling, angle-torsion coupling, and torsion-torsion coupling
5760
*
5861
* \defgroup geom Restraint
5962
* \ingroup bonded
6063
* \brief Geometric Restraints
64+
*
65+
* \defgroup vdw VDW
66+
* \brief Van der Waals
67+
*
68+
* \defgroup fft FFT
69+
* \brief Fast Fourier Transform
6170
*/
6271

63-
/// \defgroup ff Force Fields
64-
/// \defgroup vdw Van der Waals (VDW)
65-
/// \ingroup ff
6672
/// \defgroup charge Partial Charge Electrostatics
67-
/// \ingroup ff
6873
/// \defgroup chglj Charge & LJ
69-
/// \ingroup ff
7074
/// \defgroup mpole AMOEBA Multipole Electrostatics
71-
/// \ingroup ff
7275
/// \defgroup polar AMOEBA Polarization Electrostatics
73-
/// \ingroup ff
7476
/// \defgroup mplar AMOEBA Multipole & Polarization
75-
/// \ingroup ff
7677
/// \defgroup pme Particle Mesh Ewald
77-
/// \ingroup ff
7878
/// \defgroup cflux Charge Flux
79-
/// \ingroup ff
8079
/// \defgroup disp HIPPO Dispersion
81-
/// \ingroup ff
8280
/// \defgroup repel HIPPO Repulsion
83-
/// \ingroup ff
8481
/// \defgroup chgtrn Charge Transfer
85-
/// \ingroup ff
8682
/// \defgroup hippompole HIPPO Multipole Electrostatics
87-
/// \ingroup ff
8883
/// \defgroup hippopolar HIPPO Polarization
89-
/// \ingroup ff
9084

9185
/// \defgroup md Molecular Dynamics
9286
/// \defgroup mdpq Positions and Velocities
@@ -116,7 +110,6 @@
116110

117111
/// \defgroup async Asynchronous Flow Control
118112
/// \defgroup rc Resource: Pointer, Allocation, Deallocation, Queue
119-
/// \defgroup fft Fast Fourier Transform
120113
/// \defgroup test Unit Tests
121114

122115
//====================================================================//

include/ff/atom.h

Lines changed: 23 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,23 @@
44
#include <istream>
55

66
namespace tinker {
7-
/// \ingroup ff
7+
/// \addtogroup ff
8+
/// \{
9+
810
void nData(RcOp);
9-
/// \ingroup ff
1011
void massData(RcOp);
11-
/// \ingroup ff
1212
void 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.
1716
void 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.
2321
void 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.
3330
void bounds();
3431

35-
/// \ingroup ff
3632
void 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;
8964
TINKER_EXTERN pos_prec *xpos, *ypos, *zpos;
9065
static_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
}

include/ff/elec.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,20 @@ extern "C"
6161
}
6262

6363
namespace tinker {
64-
/// \ingroup ff
64+
/// \addtogroup ff
65+
/// \{
66+
6567
bool useEwald();
66-
/// \ingroup ff
6768
void elecData(RcOp);
68-
}
6969

7070
//====================================================================//
7171
// //
7272
// Global Variables //
7373
// //
7474
//====================================================================//
7575

76-
namespace tinker {
77-
/// \ingroup ff
7876
TINKER_EXTERN real electric;
79-
/// \ingroup ff
8077
TINKER_EXTERN real dielec;
78+
79+
/// \}
8180
}

0 commit comments

Comments
 (0)