--- trunk/src/applications/staticProps/NanoLength.cpp 2013/11/05 16:49:04 1941 +++ trunk/src/applications/staticProps/NanoLength.cpp 2013/11/05 18:33:42 1942 @@ -54,7 +54,8 @@ NanoLength::NanoLength(SimInfo* info, NanoLength::NanoLength(SimInfo* info, const std::string& filename, const std::string& sele) - : StaticAnalyser(info, filename), selectionScript_(sele), evaluator_(info), seleMan_(info) { + : StaticAnalyser(info, filename), selectionScript_(sele), evaluator_(info), + seleMan_(info) { setOutputName(getPrefix(filename) + ".length"); osq.open(getOutputFileName().c_str()); @@ -118,6 +119,7 @@ void NanoLength::process() { osq << time << "\t" << rodLength << std::endl; } } + osq.close(); } RealType NanoLength::getLength(std::vector atoms) {