1 | /*
|
---|
2 | * ThermoStatContainer.cpp
|
---|
3 | *
|
---|
4 | * Created on: 12.06.2010
|
---|
5 | * Author: heber
|
---|
6 | */
|
---|
7 |
|
---|
8 | #include "Helpers/MemDebug.hpp"
|
---|
9 |
|
---|
10 | #include <cstring>
|
---|
11 |
|
---|
12 | #include "ConfigFileBuffer.hpp"
|
---|
13 | #include "config.hpp"
|
---|
14 | #include "Helpers/Log.hpp"
|
---|
15 | #include "ThermoStatContainer.hpp"
|
---|
16 | #include "Helpers/Verbose.hpp"
|
---|
17 |
|
---|
18 | /** Constructor for class ThermoStatContainer.
|
---|
19 | *
|
---|
20 | */
|
---|
21 | ThermoStatContainer::ThermoStatContainer() :
|
---|
22 | Thermostat(4),
|
---|
23 | ThermostatImplemented(NULL),
|
---|
24 | ThermostatNames(NULL),
|
---|
25 | TempFrequency(2.5),
|
---|
26 | alpha(0.),
|
---|
27 | HooverMass(0.),
|
---|
28 | TargetTemp(0.00095004455),
|
---|
29 | ScaleTempStep(25)
|
---|
30 | {
|
---|
31 | ThermostatImplemented = new int[MaxThermostats];
|
---|
32 | ThermostatNames = new char *[MaxThermostats];
|
---|
33 | for (int j=0;j<MaxThermostats;j++)
|
---|
34 | ThermostatNames[j] = new char[12];
|
---|
35 |
|
---|
36 | strcpy(ThermostatNames[0],"None");
|
---|
37 | ThermostatImplemented[0] = 1;
|
---|
38 | strcpy(ThermostatNames[1],"Woodcock");
|
---|
39 | ThermostatImplemented[1] = 1;
|
---|
40 | strcpy(ThermostatNames[2],"Gaussian");
|
---|
41 | ThermostatImplemented[2] = 1;
|
---|
42 | strcpy(ThermostatNames[3],"Langevin");
|
---|
43 | ThermostatImplemented[3] = 1;
|
---|
44 | strcpy(ThermostatNames[4],"Berendsen");
|
---|
45 | ThermostatImplemented[4] = 1;
|
---|
46 | strcpy(ThermostatNames[5],"NoseHoover");
|
---|
47 | ThermostatImplemented[5] = 1;
|
---|
48 | }
|
---|
49 |
|
---|
50 | /** Destructor for Class ThermoStatContainer.
|
---|
51 | *
|
---|
52 | */
|
---|
53 | ThermoStatContainer::~ThermoStatContainer()
|
---|
54 | {
|
---|
55 | delete[](ThermostatImplemented);
|
---|
56 | for (int j=0;j<MaxThermostats;j++)
|
---|
57 | delete[](ThermostatNames[j]);
|
---|
58 | delete[](ThermostatNames);
|
---|
59 | }
|
---|
60 |
|
---|
61 |
|
---|