From 0cfd715ed3dc075febe5ce8cfcaa63fd2a74a1ab Mon Sep 17 00:00:00 2001 From: nemu Date: Mon, 31 Aug 2009 11:57:42 +0000 Subject: [PATCH] merge in Bastian M. Wojek's cpp-version of msr2data. This should help to step towards a real platform independent musrfit package. --- src/classes/PMsrHandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/classes/PMsrHandler.cpp b/src/classes/PMsrHandler.cpp index b22b9a69..5d3e2725 100644 --- a/src/classes/PMsrHandler.cpp +++ b/src/classes/PMsrHandler.cpp @@ -2665,6 +2665,7 @@ bool PMsrHandler::HandleStatisticEntry(PMsrLines &lines) if (lines.empty()) { cout << endl << ">> PMsrHandler::HandleStatisticEntry: **WARNING** There is no STATISTIC block! Do you really want this?"; cout << endl; + fStatistic.fValid = false; return true; } @@ -2710,6 +2711,7 @@ bool PMsrHandler::HandleStatisticEntry(PMsrLines &lines) } // extract chisq if (lines[i].fLine.Contains("chisq =")) { + fStatistic.fValid = true; strncpy(str, lines[i].fLine.Data(), sizeof(str)); status = sscanf(str+lines[i].fLine.Index("chisq = ")+8, "%lf", &dval); if (status == 1) { @@ -2720,6 +2722,7 @@ bool PMsrHandler::HandleStatisticEntry(PMsrLines &lines) } // extract maxLH if (lines[i].fLine.Contains("maxLH =")) { + fStatistic.fValid = true; strncpy(str, lines[i].fLine.Data(), sizeof(str)); status = sscanf(str+lines[i].fLine.Index("maxLH = ")+8, "%lf", &dval); if (status == 1) {