projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r322: *** empty log message ***
[ctsim.git]
/
libctsupport
/
plotfile.cpp
diff --git
a/libctsupport/plotfile.cpp
b/libctsupport/plotfile.cpp
index b05705aed89f03356a3ea8740cd20ddb487a0d7a..16336ef2777c9b07dbf163bf26e5835a00dc1cf2 100644
(file)
--- a/
libctsupport/plotfile.cpp
+++ b/
libctsupport/plotfile.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: plotfile.cpp,v 1.
5 2000/12/23 18:12:35
kevin Exp $
+** $Id: plotfile.cpp,v 1.
7 2000/12/29 20:09:46
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-148,8
+148,7
@@
PlotFile::statistics (int iStartingCol, double& min, double& max, double& mean,
sys_error (ERR_WARNING, "iStartingCol >= iNumColumns");
\r
return false;
\r
}
\r
sys_error (ERR_WARNING, "iStartingCol >= iNumColumns");
\r
return false;
\r
}
\r
-
\r
- int iOffset = iStartingCol * m_iNumRecords;
\r
+
\r
int iNPoints = (m_iNumColumns - iStartingCol) * m_iNumRecords;
\r
std::vector<double> vec;
\r
vec.resize (iNPoints);
\r
int iNPoints = (m_iNumColumns - iStartingCol) * m_iNumRecords;
\r
std::vector<double> vec;
\r
vec.resize (iNPoints);
\r
@@
-242,9
+241,7
@@
PlotFile::headerWrite (std::iostream& fs)
}
fs.seekp (0);
}
fs.seekp (0);
- fs << "<plotfile>\n";
\r
- fs << "<ncolumns>" << m_iNumColumns << "</ncolumns>\n";
\r
- fs << "<nrecords>" << m_iNumRecords << "</nrecords>\n";
\r
+ fs << "<plotfile " << m_iNumColumns << " " << m_iNumRecords << " >\n";
\r
int iNEzset = m_vecStrEzsetCommands.size();
\r
if (iNEzset > 0) {
\r
int iNEzset = m_vecStrEzsetCommands.size();
\r
if (iNEzset > 0) {
\r