2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
5 * Copyright (c) 2001-2004, The GROMACS development team.
6 * Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team.
7 * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
8 * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
9 * and including many others, as listed in the AUTHORS file in the
10 * top-level source directory and at http://www.gromacs.org.
12 * GROMACS is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public License
14 * as published by the Free Software Foundation; either version 2.1
15 * of the License, or (at your option) any later version.
17 * GROMACS is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with GROMACS; if not, see
24 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
25 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 * If you want to redistribute modifications to GROMACS, please
28 * consider that scientific software is very special. Version
29 * control is crucial - bugs must be traceable. We will be happy to
30 * consider code for inclusion in the official distribution, but
31 * derived work must not be called official GROMACS. Details are found
32 * in the README & COPYING files - if they are missing, get the
33 * official version at http://www.gromacs.org.
35 * To help us fund GROMACS development, we humbly ask that you cite
36 * the research papers on the package. Check out http://www.gromacs.org.
40 #include "pleasecite.h"
44 #include "gromacs/utility/arraysize.h"
45 #include "gromacs/utility/baseversion.h"
46 #include "gromacs/utility/cstringutil.h"
47 #include "gromacs/utility/smalloc.h"
48 #include "gromacs/utility/stringutil.h"
60 void please_cite(FILE* fp
, const char* key
)
62 static const t_citerec citedb
[] = {
63 { "Allen1987a", "M. P. Allen and D. J. Tildesley", "Computer simulation of liquids",
64 "Oxford Science Publications", 1, 1987, "1" },
65 { "Berendsen95a", "H. J. C. Berendsen, D. van der Spoel and R. van Drunen",
66 "GROMACS: A message-passing parallel molecular dynamics implementation",
67 "Comp. Phys. Comm.", 91, 1995, "43-56" },
68 { "Berendsen84a", "H. J. C. Berendsen, J. P. M. Postma, A. DiNola and J. R. Haak",
69 "Molecular dynamics with coupling to an external bath", "J. Chem. Phys.", 81, 1984,
71 { "Ryckaert77a", "J. P. Ryckaert and G. Ciccotti and H. J. C. Berendsen",
72 "Numerical Integration of the Cartesian Equations of Motion of a System with "
73 "Constraints; Molecular Dynamics of n-Alkanes",
74 "J. Comp. Phys.", 23, 1977, "327-341" },
75 { "Miyamoto92a", "S. Miyamoto and P. A. Kollman",
76 "SETTLE: An Analytical Version of the SHAKE and RATTLE Algorithms for Rigid Water Models",
77 "J. Comp. Chem.", 13, 1992, "952-962" },
78 { "Cromer1968a", "D. T. Cromer & J. B. Mann",
79 "X-ray scattering factors computed from numerical Hartree-Fock wave functions",
80 "Acta Cryst. A", 24, 1968, "321" },
81 { "Barth95a", "E. Barth and K. Kuczera and B. Leimkuhler and R. D. Skeel",
82 "Algorithms for Constrained Molecular Dynamics", "J. Comp. Chem.", 16, 1995, "1192-1209" },
84 "U. Essmann, L. Perera, M. L. Berkowitz, T. Darden, H. Lee and L. G. Pedersen ",
85 "A smooth particle mesh Ewald method", "J. Chem. Phys.", 103, 1995, "8577-8592" },
86 { "Torda89a", "A. E. Torda and R. M. Scheek and W. F. van Gunsteren",
87 "Time-dependent distance restraints in molecular dynamics simulations",
88 "Chem. Phys. Lett.", 157, 1989, "289-294" },
89 { "Tironi95a", "I. G. Tironi and R. Sperb and P. E. Smith and W. F. van Gunsteren",
90 "Generalized reaction field method for molecular dynamics simulations", "J. Chem. Phys",
91 102, 1995, "5451-5459" },
92 { "Hess97a", "B. Hess and H. Bekker and H. J. C. Berendsen and J. G. E. M. Fraaije",
93 "LINCS: A Linear Constraint Solver for molecular simulations", "J. Comp. Chem.", 18, 1997,
95 { "Hess2008a", "B. Hess",
96 "P-LINCS: A Parallel Linear Constraint Solver for molecular simulation",
97 "J. Chem. Theory Comput.", 4, 2008, "116-122" },
98 { "Hess2008b", "B. Hess and C. Kutzner and D. van der Spoel and E. Lindahl",
99 "GROMACS 4: Algorithms for highly efficient, load-balanced, and scalable molecular "
101 "J. Chem. Theory Comput.", 4, 2008, "435-447" },
102 { "Hub2010", "J. S. Hub, B. L. de Groot and D. van der Spoel",
103 "g_wham - A free weighted histogram analysis implementation including robust error and "
104 "autocorrelation estimates",
105 "J. Chem. Theory Comput.", 6, 2010, "3713-3720" },
106 { "In-Chul99a", "Y. In-Chul and M. L. Berkowitz",
107 "Ewald summation for systems with slab geometry", "J. Chem. Phys.", 111, 1999,
110 "B. L. de Groot and D. M. F. van Aalten and R. M. Scheek and A. Amadei and G. Vriend and "
111 "H. J. C. Berendsen",
112 "Prediction of Protein Conformational Freedom From Distance Constrains", "Proteins", 29,
114 { "Spoel98a", "D. van der Spoel and P. J. van Maaren and H. J. C. Berendsen",
115 "A systematic study of water models for molecular simulation. Derivation of models "
116 "optimized for use with a reaction-field.",
117 "J. Chem. Phys.", 108, 1998, "10220-10230" },
118 { "Wishart98a", "D. S. Wishart and A. M. Nip",
119 "Protein Chemical Shift Analysis: A Practical Guide", "Biochem. Cell Biol.", 76, 1998,
121 { "Maiorov95", "V. N. Maiorov and G. M. Crippen",
122 "Size-Independent Comparison of Protein Three-Dimensional Structures",
123 "PROTEINS: Struct. Funct. Gen.", 22, 1995, "273-283" },
124 { "Feenstra99", "K. A. Feenstra and B. Hess and H. J. C. Berendsen",
125 "Improving Efficiency of Large Time-scale Molecular Dynamics Simulations of "
126 "Hydrogen-rich Systems",
127 "J. Comput. Chem.", 20, 1999, "786-798" },
129 "Tuanan C. Lourenco and Mariny F. C. Coelho and Teodorico C. Ramalho and David van der "
130 "Spoel and Luciano T. Costa",
131 "Insights on the Solubility of CO2 in 1-Ethyl-3-methylimidazolium "
132 "Bis(trifluoromethylsulfonyl)imide from the Microscopic Point of View",
133 "Environ. Sci. Technol.", 47, 2013, "7421-7429" },
134 { "Timneanu2004a", "N. Timneanu and C. Caleman and J. Hajdu and D. van der Spoel",
135 "Auger Electron Cascades in Water and Ice", "Chem. Phys.", 299, 2004, "277-283" },
136 { "Pascal2011a", "T. A. Pascal and S. T. Lin and W. A. Goddard III",
137 "Thermodynamics of liquids: standard molar entropies and heat capacities of common "
138 "solvents from 2PT molecular dynamics",
139 "Phys. Chem. Chem. Phys.", 13, 2011, "169-181" },
140 { "Caleman2008a", "C. Caleman and D. van der Spoel",
141 "Picosecond Melting of Ice by an Infrared Laser Pulse: A Simulation Study",
142 "Angew. Chem. Int. Ed", 47, 2008, "1417-1420" },
144 "C. Caleman and P. J. van Maaren and M. Hong and J. S. Hub and L. T. da Costa and D. van "
146 "Force Field Benchmark of Organic Liquids: Density, Enthalpy of Vaporization, Heat "
147 "Capacities, Surface Tension, Isothermal Compressibility, Volumetric Expansion "
148 "Coefficient, and Dielectric Constant",
149 "J. Chem. Theo. Comp.", 8, 2012, "61" },
150 { "Lindahl2001a", "E. Lindahl and B. Hess and D. van der Spoel",
151 "GROMACS 3.0: A package for molecular simulation and trajectory analysis", "J. Mol. Mod.",
152 7, 2001, "306-317" },
153 { "Wang2001a", "J. Wang and W. Wang and S. Huo and M. Lee and P. A. Kollman",
154 "Solvation model based on weighted solvent accessible surface area", "J. Phys. Chem. B",
155 105, 2001, "5055-5067" },
156 { "Eisenberg86a", "D. Eisenberg and A. D. McLachlan",
157 "Solvation energy in protein folding and binding", "Nature", 319, 1986, "199-203" },
158 { "Bondi1964a", "A. Bondi", "van der Waals Volumes and Radii", "J. Phys. Chem.", 68, 1964,
161 "Frank Eisenhaber and Philip Lijnzaad and Patrick Argos and Chris Sander and Michael "
163 "The Double Cube Lattice Method: Efficient Approaches to Numerical Integration of "
164 "Surface Area and Volume and to Dot Surface Contouring of Molecular Assemblies",
165 "J. Comp. Chem.", 16, 1995, "273-284" },
166 { "Hess2002", "B. Hess, H. Saint-Martin and H.J.C. Berendsen",
167 "Flexible constraints: an adiabatic treatment of quantum degrees of freedom, with "
168 "application to the flexible and polarizable MCDHO model for water",
169 "J. Chem. Phys.", 116, 2002, "9602-9610" },
170 { "Hess2003", "B. Hess and R.M. Scheek",
171 "Orientation restraints in molecular dynamics simulations using time and ensemble "
173 "J. Magn. Res.", 164, 2003, "19-27" },
174 { "Rappe1991a", "A. K. Rappe and W. A. Goddard III",
175 "Charge Equillibration for Molecular Dynamics Simulations", "J. Phys. Chem.", 95, 1991,
177 { "Mu2005a", "Y. Mu, P. H. Nguyen and G. Stock",
178 "Energy landscape of a small peptide revelaed by dihedral angle principal component "
180 "Prot. Struct. Funct. Bioinf.", 58, 2005, "45-52" },
181 { "Okabe2001a", "T. Okabe and M. Kawata and Y. Okamoto and M. Mikami",
182 "Replica-exchange {M}onte {C}arlo method for the isobaric-isothermal ensemble",
183 "Chem. Phys. Lett.", 335, 2001, "435-439" },
184 { "Hukushima96a", "K. Hukushima and K. Nemoto",
185 "Exchange Monte Carlo Method and Application to Spin Glass Simulations",
186 "J. Phys. Soc. Jpn.", 65, 1996, "1604-1608" },
187 { "Tropp80a", "J. Tropp",
188 "Dipolar Relaxation and Nuclear Overhauser effects in nonrigid molecules: The effect of "
189 "fluctuating internuclear distances",
190 "J. Chem. Phys.", 72, 1980, "6035-6043" },
192 "P. Bultinck and W. Langenaeker and P. Lahorte and F. De Proft and P. Geerlings and M. "
193 "Waroquier and J. P. Tollenaere",
194 "The electronegativity equalization method I: Parametrization and validation for atomic "
195 "charge calculations",
196 "J. Phys. Chem. A", 106, 2002, "7887-7894" },
197 { "Yang2006b", "Q. Y. Yang and K. A. Sharp",
198 "Atomic charge parameters for the finite difference Poisson-Boltzmann method using "
199 "electronegativity neutralization",
200 "J. Chem. Theory Comput.", 2, 2006, "1152-1167" },
202 "D. van der Spoel, E. Lindahl, B. Hess, G. Groenhof, A. E. Mark and H. J. C. Berendsen",
203 "GROMACS: Fast, Flexible and Free", "J. Comp. Chem.", 26, 2005, "1701-1719" },
204 { "Spoel2006b", "D. van der Spoel, P. J. van Maaren, P. Larsson and N. Timneanu",
205 "Thermodynamics of hydrogen bonding in hydrophilic and hydrophobic media",
206 "J. Phys. Chem. B", 110, 2006, "4393-4398" },
207 { "Spoel2006d", "D. van der Spoel and M. M. Seibert",
208 "Protein folding kinetics and thermodynamics from atomistic simulations",
209 "Phys. Rev. Letters", 96, 2006, "238102" },
210 { "Palmer94a", "B. J. Palmer",
211 "Transverse-current autocorrelation-function calculations of the shear viscosity for "
213 "Phys. Rev. E", 49, 1994, "359-366" },
214 { "Bussi2007a", "G. Bussi, D. Donadio and M. Parrinello",
215 "Canonical sampling through velocity rescaling", "J. Chem. Phys.", 126, 2007, "014101" },
216 { "Hub2006", "J. S. Hub and B. L. de Groot", "Does CO2 permeate through Aquaporin-1?",
217 "Biophys. J.", 91, 2006, "842-848" },
218 { "Hub2008", "J. S. Hub and B. L. de Groot",
219 "Mechanism of selectivity in aquaporins and aquaglyceroporins", "PNAS", 105, 2008,
222 "M. S. Friedrichs, P. Eastman, V. Vaidyanathan, M. Houston, S. LeGrand, A. L. Beberg, D. "
223 "L. Ensign, C. M. Bruns, and V. S. Pande",
224 "Accelerating Molecular Dynamic Simulation on Graphics Processing Units",
225 "J. Comp. Chem.", 30, 2009, "864-872" },
226 { "Engin2010", "O. Engin, A. Villa, M. Sayar and B. Hess",
227 "Driving Forces for Adsorption of Amphiphilic Peptides to Air-Water Interface",
228 "J. Phys. Chem. B", 114, 2010, "11093" },
229 { "Wang2010", "H. Wang, F. Dommert, C.Holm",
230 "Optimizing working parameters of the smooth particle mesh Ewald algorithm in terms of "
231 "accuracy and efficiency",
232 "J. Chem. Phys. B", 133, 2010, "034117" },
233 { "Sugita1999a", "Y. Sugita, Y. Okamoto",
234 "Replica-exchange molecular dynamics method for protein folding", "Chem. Phys. Lett.",
235 314, 1999, "141-151" },
236 { "Kutzner2011", "C. Kutzner and J. Czub and H. Grubmuller",
237 "Keep it Flexible: Driving Macromolecular Rotary Motions in Atomistic Simulations with "
239 "J. Chem. Theory Comput.", 7, 2011, "1381-1393" },
241 "M. Hoefling, N. Lima, D. Haenni, C.A.M. Seidel, B. Schuler, H. Grubmuller",
242 "Structural Heterogeneity and Quantitative FRET Efficiency Distributions of Polyprolines "
243 "through a Hybrid Atomistic Simulation and Monte Carlo Approach",
244 "PLoS ONE", 6, 2011, "e19791" },
245 { "Hockney1988", "R. W. Hockney and J. W. Eastwood", "Computer simulation using particles",
246 "IOP, Bristol", 1, 1988, "1" },
247 { "Ballenegger2012", "V. Ballenegger, J.J. Cerda, and C. Holm",
248 "How to Convert SPME to P3M: Influence Functions and Error Estimates",
249 "J. Chem. Theory Comput.", 8, 2012, "936-947" },
251 "Garmay Yu, Shvetsov A, Karelov D, Lebedev D, Radulescu A, Petukhov M, Isaev-Ivanov V",
252 "Correlated motion of protein subdomains and large-scale conformational flexibility of "
253 "RecA protein filament",
254 "Journal of Physics: Conference Series", 340, 2012, "012094" },
255 { "Kutzner2011b", "C. Kutzner, H. Grubmuller, B. L. de Groot, and U. Zachariae",
256 "Computational Electrophysiology: The Molecular Dynamics of Ion Channel Permeation and "
257 "Selectivity in Atomistic Detail",
258 "Biophys. J.", 101, 2011, "809-817" },
260 "M. Lundborg, R. Apostolov, D. Spangberg, A. Gardenas, D. van der Spoel and E. Lindahl",
261 "An efficient and extensible format, library, and API for binary trajectory data from "
262 "molecular simulations",
263 "J. Comput. Chem.", 35, 2014, "260-269" },
265 "N. Goga and A. J. Rzepiela and A. H. de Vries and S. J. Marrink and H. J. C. Berendsen",
266 "Efficient Algorithms for Langevin and DPD Dynamics", "J. Chem. Theory Comput.", 8, 2012,
269 "S. Pronk, S. Páll, R. Schulz, P. Larsson, P. Bjelkmar, R. Apostolov, M. R. Shirts, J. "
270 "C. Smith, P. M. Kasson, D. van der Spoel, B. Hess, and E. Lindahl",
271 "GROMACS 4.5: a high-throughput and highly parallel open source molecular simulation "
273 "Bioinformatics", 29, 2013, "845-54" },
274 { "Pall2015", "S. Páll, M. J. Abraham, C. Kutzner, B. Hess, E. Lindahl",
275 "Tackling Exascale Software Challenges in Molecular Dynamics Simulations with GROMACS",
276 "In S. Markidis & E. Laure (Eds.), Solving Software Challenges for Exascale", 8759, 2015,
279 "M. J. Abraham, T. Murtola, R. Schulz, S. Páll, J. C. Smith, B. Hess, E. Lindahl",
280 "GROMACS: High performance molecular simulations through multi-level parallelism from "
281 "laptops to supercomputers",
282 "SoftwareX", 1, 2015, "19-25" },
283 { "Ballenegger2009", "V. Ballenegger, A. Arnold, J. J. Cerdà",
284 "Simulations of non-neutral slab systems with long-range electrostatic interactions in "
285 "two-dimensional periodic boundary conditions",
286 "J. Chem. Phys", 131, 2009, "094107" },
287 { "Hub2014a", "J. S. Hub, B. L. de Groot, H. Grubmueller, G. Groenhof",
288 "Quantifying Artifacts in Ewald Simulations of Inhomogeneous Systems with a Net Charge",
289 "J. Chem. Theory Comput.", 10, 2014, "381-393" },
290 { "Spoel2018a", "D. van der Spoel, M. M. Ghahremanpour, J. Lemkul",
291 "Small Molecule Thermochemistry: A Tool For Empirical Force Field Development",
292 "J. Phys. Chem. A", 122, 2018, "8982-8988" },
293 { "Lindahl2014", "V. Lindahl, J. Lidmar, B. Hess",
294 "Accelerated weight histogram method for exploring free energy landscapes",
295 "J. Chem. Phys.", 141, 2014, "044110" },
297 #define NSTR static_cast<int>(asize(citedb))
302 #define LINE_WIDTH 79
309 for (index
= 0; index
< NSTR
&& (strcmp(citedb
[index
].key
, key
) != 0); index
++) {}
311 fprintf(fp
, "\n++++ PLEASE READ AND CITE THE FOLLOWING REFERENCE ++++\n");
314 /* Insert newlines */
315 author
= wrap_lines(citedb
[index
].author
, LINE_WIDTH
, 0, FALSE
);
316 title
= wrap_lines(citedb
[index
].title
, LINE_WIDTH
, 0, FALSE
);
317 fprintf(fp
, "%s\n%s\n%s %d (%d) pp. %s\n", author
, title
, citedb
[index
].journal
,
318 citedb
[index
].volume
, citedb
[index
].year
, citedb
[index
].pages
);
324 fprintf(fp
, "Entry %s not found in citation database\n", key
);
326 fprintf(fp
, "-------- -------- --- Thank You --- -------- --------\n\n");
333 //! Write a message to \c fp to request citation also of the source-code DOI.
334 void writeSourceDoi(FILE* fp
)
336 /* Check if we are in release mode or not.
337 * TODO The check should properly target something else than
338 * the string being empty
340 if (strlen(gmxDOI()) == 0)
342 /* Not a release build, return without printing anything */
345 gmx::TextLineWrapper wrapper
;
346 wrapper
.settings().setLineLength(LINE_WIDTH
);
347 wrapper
.settings().setFirstLineIndent(0);
348 const std::string doiString
= wrapper
.wrapToString(gmxDOI());
354 fprintf(fp
, "\n++++ PLEASE CITE THE DOI FOR THIS VERSION OF GROMACS ++++\n");
355 fprintf(fp
, "%s%s\n", "https://doi.org/", doiString
.c_str());
356 fprintf(fp
, "-------- -------- --- Thank You --- -------- --------\n\n");
362 void pleaseCiteGromacs(FILE* fplog
)
364 if (fplog
== nullptr)
369 please_cite(fplog
, "Abraham2015");
370 please_cite(fplog
, "Pall2015");
371 please_cite(fplog
, "Pronk2013");
372 please_cite(fplog
, "Hess2008b");
373 please_cite(fplog
, "Spoel2005a");
374 please_cite(fplog
, "Lindahl2001a");
375 please_cite(fplog
, "Berendsen95a");
376 writeSourceDoi(fplog
);