54 |
|
NanoLength::NanoLength(SimInfo* info, |
55 |
|
const std::string& filename, |
56 |
|
const std::string& sele) |
57 |
< |
: StaticAnalyser(info, filename), selectionScript_(sele), evaluator_(info), seleMan_(info) { |
57 |
> |
: StaticAnalyser(info, filename), selectionScript_(sele), evaluator_(info), |
58 |
> |
seleMan_(info) { |
59 |
|
setOutputName(getPrefix(filename) + ".length"); |
60 |
|
|
61 |
|
osq.open(getOutputFileName().c_str()); |
119 |
|
osq << time << "\t" << rodLength << std::endl; |
120 |
|
} |
121 |
|
} |
122 |
+ |
osq.close(); |
123 |
|
} |
124 |
|
|
125 |
|
RealType NanoLength::getLength(std::vector<StuntDouble*> atoms) { |