X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fgmxlib%2Fconformation-utilities.cpp;fp=src%2Fgromacs%2Fgmxlib%2Fconformation-utilities.c;h=0e1241acaefe9ba1c89a96d78160ce4e312750ac;hb=87823c5ebe2ecab05a07cfdfd5165e53cb07c30d;hp=d21efa4cde0a00dae3f51dd55e597715e35e5cd4;hpb=4fb23a1438393a48312088b77f662c30ac7fbf68;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/gmxlib/conformation-utilities.c b/src/gromacs/gmxlib/conformation-utilities.cpp similarity index 96% rename from src/gromacs/gmxlib/conformation-utilities.c rename to src/gromacs/gmxlib/conformation-utilities.cpp index d21efa4cde..0e1241acae 100644 --- a/src/gromacs/gmxlib/conformation-utilities.c +++ b/src/gromacs/gmxlib/conformation-utilities.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,7 +39,9 @@ #include "conformation-utilities.h" -#include +#include + +#include #include "gromacs/legacyheaders/macros.h" #include "gromacs/math/vec.h" @@ -127,7 +129,6 @@ void make_new_box(int natoms, rvec *x, matrix box, rvec box_space, { int i, m; rvec xmin, xmax; - real max_box; /*calculate minimum and maximum x[0..DIM-1]*/ for (m = 0; (m < DIM); m++) @@ -138,8 +139,8 @@ void make_new_box(int natoms, rvec *x, matrix box, rvec box_space, { for (m = 0; m < DIM; m++) { - xmin[m] = min(xmin[m], x[i][m]); - xmax[m] = max(xmax[m], x[i][m]); + xmin[m] = std::min(xmin[m], x[i][m]); + xmax[m] = std::max(xmax[m], x[i][m]); } }