ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/selection/SelectionEvaluator.hpp
(Generate patch)

Comparing trunk/src/selection/SelectionEvaluator.hpp (file contents):
Revision 1902 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 1903 by gezelter, Tue Jul 16 18:58:08 2013 UTC

# Line 105 | Line 105 | namespace OpenMD {
105        }            
106        return script.substr(ichBegin, ichEnd);
107      }
108 +    bool hasSurfaceArea() { return hasSurfaceArea_; }
109 +    RealType getSurfaceArea() {
110 +      if (hasSurfaceArea_) {
111 +        return surfaceArea_;
112 +      } else {
113 +        sprintf( painCave.errMsg,
114 +                 "SelectionEvaluator Error: %s\n", "No Surface Area For You!");
115 +        painCave.severity = OPENMD_ERROR;
116 +        painCave.isFatal = 1;
117 +        simError();
118 +        return 0.0;
119 +      }
120 +    }
121 +
122    
123    private:
124  
# Line 213 | Line 227 | namespace OpenMD {
227  
228      bool isDynamic_;
229      bool isLoaded_;
230 +    bool hasSurfaceArea_;
231 +    RealType surfaceArea_;
232          
233    };
234  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines