ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/brains/Stats.cpp
Revision: 1822
Committed: Thu Dec 2 02:08:29 2004 UTC (19 years, 7 months ago) by tim
File size: 3137 byte(s)
Log Message:
oopse get compiled, still has some linking problem

File Contents

# User Rev Content
1 tim 1710 /*
2     * Copyright (C) 2000-2004 Object Oriented Parallel Simulation Engine (OOPSE) project
3     *
4     * Contact: oopse@oopse.org
5     *
6     * This program is free software; you can redistribute it and/or
7     * modify it under the terms of the GNU Lesser General Public License
8     * as published by the Free Software Foundation; either version 2.1
9     * of the License, or (at your option) any later version.
10     * All we ask is that proper credit is given for our work, which includes
11     * - but is not limited to - adding the above copyright notice to the beginning
12     * of your source code files, and to any copyright notice that you may distribute
13     * with programs based on this work.
14     *
15     * This program is distributed in the hope that it will be useful,
16     * but WITHOUT ANY WARRANTY; without even the implied warranty of
17     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18     * GNU Lesser General Public License for more details.
19     *
20     * You should have received a copy of the GNU Lesser General Public License
21     * along with this program; if not, write to the Free Software
22     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23     *
24     */
25    
26     /**
27     * @file Stats.cpp
28     * @author tlin
29     * @date 11/04/2004
30     * @time 14:26am
31     * @version 1.0
32     */
33    
34     #include "brains/Stats.hpp"
35    
36     namespace oopse {
37    
38 tim 1804 bool Stats::isInit_ = false;
39 tim 1710
40 tim 1804 Stats::Stats() {
41    
42     if (!isInit_) {
43     init();
44     isInit_ = false;
45     }
46    
47 tim 1710 }
48 tim 1804
49     void Stats::init() {
50    
51 tim 1820 title_[TIME] = "Time";
52     title_[TOTAL_ENERGY] = "Total Energy";
53     title_[POTENTIAL_ENERGY] = "Potential Energy";
54     title_[KINETIC_ENERGY] = "Kinetic Energy";
55     title_[TEMPERATURE] = "Temperature";
56     title_[PRESSURE] = "Pressure";
57 tim 1822 title_[VOLUME] = "Volume";
58 tim 1820 title_[CONSERVED_QUANTITY] = "Conserved Quantity";
59     title_[TRANSLATIONAL_KINETIC] = "Translational Kinetic";
60     title_[ROTATIONAL_KINETIC] = "Rotational Kinetic";
61     title_[LONG_RANGE_POTENTIAL] = "Long Range Potential";
62     title_[SHORT_RANGE_POTENTIAL] = "Short Range Potential";
63     title_[VANDERWAALS_POTENTIAL] = "van der waals Potential";
64     title_[BOND_POTENTIAL] = "Bond Potential";
65     title_[BEND_POTENTIAL] = "Bend Potential";
66     title_[DIHEDRAL_POTENTIAL] = "Dihedral Potential";
67     title_[IMPROPER_POTENTIAL] = "Improper Potential";
68     title_[VRAW] = "Raw Potential";
69     title_[VHARM] = "Harmonic Potential";
70 tim 1804
71 tim 1820 units_[TIME] = "fs";
72     units_[TOTAL_ENERGY] = "kcal/mol";
73     units_[POTENTIAL_ENERGY] = "kcal/mol";
74     units_[KINETIC_ENERGY] = "kcal/mol";
75     units_[TEMPERATURE] = "K";
76     units_[PRESSURE] = "atm";
77 tim 1822 units_[VOLUME] = "A^3";
78 tim 1820 units_[CONSERVED_QUANTITY] = "kcal/mol";
79     units_[TRANSLATIONAL_KINETIC] = "kcal/mol";
80     units_[ROTATIONAL_KINETIC] = "kcal/mol";
81     units_[LONG_RANGE_POTENTIAL] = "kcal/mol";
82     units_[SHORT_RANGE_POTENTIAL] = "kcal/mol";
83     units_[VANDERWAALS_POTENTIAL] = "kcal/mol";
84     units_[BOND_POTENTIAL] = "kcal/mol";
85     units_[BEND_POTENTIAL] = "kcal/mol";
86     units_[DIHEDRAL_POTENTIAL] = "kcal/mol";
87     units_[IMPROPER_POTENTIAL] = "kcal/mol";
88     units_[VRAW] = "kcal/mol";
89     units_[VHARM] = "kcal/mol";
90 tim 1804 }
91    
92     }

Properties

Name Value
svn:executable *