| 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 |
|
|
| 227 |
|
|
| 228 |
|
bool isDynamic_; |
| 229 |
|
bool isLoaded_; |
| 230 |
+ |
bool hasSurfaceArea_; |
| 231 |
+ |
RealType surfaceArea_; |
| 232 |
|
|
| 233 |
|
}; |
| 234 |
|
|