X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fgmxana%2Fpp2shift.cpp;fp=src%2Fgromacs%2Fgmxana%2Fpp2shift.c;h=0ca2c3ad7d7a1e66a4500e2d5a329ae0edba5845;hb=8a9ed358b11c7181e46129f811c6f9a9805cbdd3;hp=fa12f6d0b6afed5d822f886780f87ceb6719b0ea;hpb=87823c5ebe2ecab05a07cfdfd5165e53cb07c30d;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/gmxana/pp2shift.c b/src/gromacs/gmxana/pp2shift.cpp similarity index 96% rename from src/gromacs/gmxana/pp2shift.c rename to src/gromacs/gmxana/pp2shift.cpp index fa12f6d0b6..0ca2c3ad7d 100644 --- a/src/gromacs/gmxana/pp2shift.c +++ b/src/gromacs/gmxana/pp2shift.cpp @@ -3,7 +3,7 @@ * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. - * Copyright (c) 2013,2014, by the GROMACS development team, led by + * Copyright (c) 2013,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. @@ -36,8 +36,10 @@ */ #include "gmxpre.h" -#include -#include +#include +#include + +#include #include "gromacs/fileio/matio.h" #include "gromacs/gmxana/gstat.h" @@ -131,8 +133,8 @@ static void dump_sd(const char *fn, t_shiftdata *sd) newdata[i][j] = sd->data[i/nfac][j/nfac]; else*/ newdata[i][j] = interpolate(phi, psi, sd); - lo = min(lo, newdata[i][j]); - hi = max(hi, newdata[i][j]); + lo = std::min(lo, newdata[i][j]); + hi = std::max(hi, newdata[i][j]); } } sprintf(buf, "%s.xpm", fn);