Adding support for non-arithmetic mixing to charmm and updating docs and

restart2data
This commit is contained in:
W. Michael Brown
2011-01-06 18:02:09 -05:00
parent 3f295e5eb5
commit 9d654ca91c
13 changed files with 95 additions and 44 deletions

View File

@ -55,14 +55,14 @@ bool CRML_GPU_MemoryT::init(const int ntypes,
double *host_special_coul, const double qqrd2e,
const double g_ewald, const double cut_lj_innersq,
const double denom_lj, double **epsilon,
double **sigma) {
double **sigma, const bool mix_arithmetic) {
this->init_atomic(nlocal,nall,max_nbors,maxspecial,cell_size,gpu_split,
_screen,crml_gpu_kernel);
// If atom type constants fit in shared memory use fast kernel
int lj_types=ntypes;
shared_types=false;
if (this->_block_size>=64)
if (this->_block_size>=64 && mix_arithmetic)
shared_types=true;
_lj_types=lj_types;