X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fgmxana%2Fanadih.cpp;fp=src%2Fgromacs%2Fgmxana%2Fanadih.cpp;h=027fdf10c3b6ce14a23ce5e76e6938fe77570800;hb=c3f2d46e4047f0c465f7234b3784a2fa6f02a065;hp=43b50af15e1a74e1243aa858a5a122056f09d554;hpb=0595b4a4c763a0bc574658992081abf8b0abc3fe;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/gmxana/anadih.cpp b/src/gromacs/gmxana/anadih.cpp index 43b50af15e..027fdf10c3 100644 --- a/src/gromacs/gmxana/anadih.cpp +++ b/src/gromacs/gmxana/anadih.cpp @@ -764,7 +764,7 @@ void make_histo(FILE *log, } fprintf(log, "Min data: %10g Max data: %10g\n", minx, maxx); } - dx = (double)npoints/(maxx-minx); + dx = npoints/(maxx-minx); if (debug) { fprintf(debug, @@ -911,7 +911,7 @@ void read_ang_dih(const char *trj_fn, for (i = 0; (i < nangles); i++) { real dd = angles[cur][i]; - angles[cur][i] = std::atan2(sin(dd), cos(dd)); + angles[cur][i] = std::atan2(std::sin(dd), std::cos(dd)); } } else