X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fgmxana%2Fprinc.cpp;fp=src%2Fgromacs%2Fgmxana%2Fprinc.c;h=c8af2377b38eef69f0b2ae89ea561ba90003ade9;hb=8a9ed358b11c7181e46129f811c6f9a9805cbdd3;hp=fb7dcad1d7002380832aabf44ff4d2ea75d01f7a;hpb=87823c5ebe2ecab05a07cfdfd5165e53cb07c30d;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/gmxana/princ.c b/src/gromacs/gmxana/princ.cpp similarity index 98% rename from src/gromacs/gmxana/princ.c rename to src/gromacs/gmxana/princ.cpp index fb7dcad1d7..c8af2377b3 100644 --- a/src/gromacs/gmxana/princ.c +++ b/src/gromacs/gmxana/princ.cpp @@ -3,7 +3,7 @@ * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. - * Copyright (c) 2012,2014, by the GROMACS development team, led by + * Copyright (c) 2012,2014,2015, 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. @@ -39,6 +39,8 @@ #include "princ.h" +#include + #include "gromacs/legacyheaders/txtdump.h" #include "gromacs/legacyheaders/typedefs.h" #include "gromacs/linearalgebra/nrjac.h" @@ -74,7 +76,7 @@ static void ptrans(char *s, real **inten, real d[], real e[]) z = inten[m][3]; n = x*x+y*y+z*z; fprintf(stderr, "%8s %8.3f %8.3f %8.3f, norm:%8.3f, d:%8.3f, e:%8.3f\n", - s, x, y, z, sqrt(n), d[m], e[m]); + s, x, y, z, std::sqrt(n), d[m], e[m]); } fprintf(stderr, "\n"); }