Clean up some mathematical constants
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 22 Nov 2012 14:48:29 +0000 (15:48 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 26 Nov 2012 14:24:28 +0000 (15:24 +0100)
commit8254a76868e484d83b20221b2855dda8b0e8382a
treedca59674d6ac31b94d13ebd973598cef90e5d842
parenteb1403520bdaf058e9de289a96773e535e765a93
Clean up some mathematical constants

Replaced some hard-coded floats with unified constants in include/maths.h,
and made most places refer to them. Also added note that care is needed
about float-sized constants in CUDA code.

Change-Id: Icf1ec0b81179792d5e6d4d4ab9b38af3a38d7770
12 files changed:
include/maths.h
src/contrib/gen_table.c
src/gmxlib/ewald_util.c
src/gmxlib/nonbonded/nb_free_energy.c
src/kernel/calc_verletbuf.c
src/mdlib/nbnxn_cuda/nbnxn_cuda_kernel.cuh
src/mdlib/nbnxn_cuda/nbnxn_cuda_kernel_legacy.cuh
src/mdlib/nbnxn_cuda/nbnxn_cuda_kernel_utils.cuh
src/mdlib/nbnxn_kernels/nbnxn_kernel_gpu_ref.c
src/mdlib/nbnxn_kernels/nbnxn_kernel_x86_simd_outer.h
src/mdlib/tables.c
src/tools/expfit.c