Minor performance improments
authorRoland Schulz <roland@utk.edu>
Thu, 21 Aug 2014 16:16:09 +0000 (12:16 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 20 Sep 2014 00:18:31 +0000 (02:18 +0200)
commit4cd608ba1c6b677472b3dfcb19cc5f15ebe9e639
treee0de9a0e6825b171e7e89dc8ac593e996be99c29
parentd390204c99b638867390820d03961fd4a4d78656
Minor performance improments

Mostly useful as lesson learned.

1) The double precision constant forces the compiler to convert
   the single precision variable to double, then do the multiplication
   in double and then convert back. Using the single precsion
   constant in double reduces the accuracy (the calculation is still done
   double but the constant has only single precision).
2) Using a temporary array instead of a temporary scalar causes ICC14 to
   generate an extra store.

Change-Id: Ib320ac2ae4ff80ce48277544abff468c483cc83a
src/gromacs/gmxlib/nonbonded/nb_free_energy.c
src/gromacs/mdlib/domdec_setup.cpp