ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/staticProps/NanoVolume.cpp
(Generate patch)

Comparing trunk/src/applications/staticProps/NanoVolume.cpp (file contents):
Revision 1199 by chuckv, Thu Dec 6 20:40:38 2007 UTC vs.
Revision 1207 by chuckv, Tue Jan 8 19:36:28 2008 UTC

# Line 45 | Line 45
45   *
46   *  Created by Charles F. Vardeman II on 14 Dec 2006.
47   *  @author  Charles F. Vardeman II
48 < *  @version $Id: NanoVolume.cpp,v 1.5 2007-12-06 20:40:30 chuckv Exp $
48 > *  @version $Id: NanoVolume.cpp,v 1.6 2008-01-08 19:36:28 chuckv Exp $
49   *
50   */
51  
52   #include "applications/staticProps/NanoVolume.hpp"
53   #include "math/ConvexHull.hpp"
54 + #include "math/AlphaShape.hpp"
55   #include "utils/simError.h"
56   #include "io/DumpReader.hpp"
57   #include "primitives/Molecule.hpp"
# Line 131 | Line 132 | void NanoVolume::process() {
132      }
133      // Generate convex hull for this frame.
134      hull->genHull(pos_);
135 <    totalVolume_ += hull->getVolume();          
135 >  //  totalVolume_ += hull->getVolume();                
136    }
137 <  RealType avgVolume = totalVolume_/(RealType) frameCounter_;
137 >  //RealType avgVolume = totalVolume_/(RealType) frameCounter_;
138    //std::cout.precision(7);
139    //std::cout  << avgVolume << std::endl;
140 <
140 > /*
141    std::ofstream osq(getOutputFileName().c_str());
142    osq.precision(7);
143    if (osq.is_open()){
# Line 144 | Line 145 | void NanoVolume::process() {
145  
146    }
147    osq.close();
148 + */
149   #else
150    sprintf(painCave.errMsg, "NanoVolume: Neither CGAL nor qhull support was compiled in!\n");
151    painCave.isFatal = 1;
152    simError();  
153 +
154   #endif
155 +
156   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines