20 |
|
// |
21 |
|
// Hoover, W. G., 1986, Phys. Rev. A, 34, 2499. |
22 |
|
|
23 |
< |
NPTf::NPTf ( SimInfo *theInfo, ForceFields* the_ff): |
24 |
< |
Integrator( theInfo, the_ff ) |
23 |
> |
template<typename T> NPTf<T>::NPTf ( SimInfo *theInfo, ForceFields* the_ff): |
24 |
> |
T( theInfo, the_ff ) |
25 |
|
{ |
26 |
|
int i, j; |
27 |
|
chi = 0.0; |
36 |
|
have_target_pressure = 0; |
37 |
|
} |
38 |
|
|
39 |
< |
void NPTf::moveA() { |
39 |
> |
template<typename T> void NPTf<T>::moveA() { |
40 |
|
|
41 |
|
int i, j, k; |
42 |
|
DirectionalAtom* dAtom; |
228 |
|
|
229 |
|
} |
230 |
|
|
231 |
< |
void NPTf::moveB( void ){ |
231 |
> |
template<typename T> void NPTf<T>::moveB( void ){ |
232 |
|
|
233 |
|
int i, j; |
234 |
|
DirectionalAtom* dAtom; |
310 |
|
} |
311 |
|
} |
312 |
|
|
313 |
< |
int NPTf::readyCheck() { |
313 |
> |
template<typename T> int NPTf<T>::readyCheck() { |
314 |
> |
|
315 |
> |
//check parent's readyCheck() first |
316 |
> |
if (T::readyCheck() == -1) |
317 |
> |
return -1; |
318 |
|
|
319 |
|
// First check to see if we have a target temperature. |
320 |
|
// Not having one is fatal. |