Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 13 of file LJTable.h.
LJTable::LJTable |
( |
void |
| ) |
|
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 16 of file LJTable.C.
References Parameters::get_num_vdw_params(), Node::molecule, Node::Object(), Node::parameters, Node::simParameters, SimParameters::soluteScalingOn, and Molecule::ss_num_vdw_params.
20 if (!soluteScalingOn) {
26 table_alloc =
new char[2*table_dim*table_dim*
sizeof(TableEntry) + 31];
27 char *table_align = table_alloc;
28 while ( (
long)table_align % 32 ) table_align++;
29 table = (TableEntry *) table_align;
31 for (
register int i=0; i < table_dim; i++)
32 for (
register int j=i; j < table_dim; j++)
34 TableEntry *curij = &(table[2*(i*table_dim+j)]);
35 TableEntry *curji = &(table[2*(j*table_dim+i)]);
36 compute_vdw_params(i,j,curij,curij+1);
40 *(curji + 1) = *(curij + 1);
SimParameters * simParameters
int get_num_vdw_params(void)