Commit a4a0cd59 authored by whitlocb's avatar whitlocb

I made some ASCII number saving routines save more precision.



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@7931 18c085ea-50e0-402c-830e-de6fd14e8384
parent f010ea40
......@@ -648,6 +648,9 @@ avtDatasetFileWriter::WriteSTLFile(const char *filename, bool binary)
// Jeremy Meredith, Tue Dec 30 09:14:08 PST 2003
// Removed the Curve writer and renamed this one to Curve.
//
// Brad Whitlock, Fri Jul 24 11:16:02 PDT 2009
// Output the numbers with more precision.
//
// ****************************************************************************
void
......@@ -690,7 +693,7 @@ avtDatasetFileWriter::WriteCurveFile(const char *filename)
{
double pt[3];
pts->GetPoint(line_segments[i][j], pt);
ofile << pt[0] << " " << pt[1] << endl;
ofile << std::setprecision(16) << pt[0] << " " << pt[1] << endl;
}
}
......
......@@ -221,6 +221,9 @@ avtXmdvWriter::WriteHeaders(const avtDatabaseMetaData *md,
// Retest for varCentering here if necessary. Throw excepton if we cannot
// determine centering.
//
// Brad Whitlock, Fri Jul 24 11:31:23 PDT 2009
// I made the columns write values with more precision.
//
// ****************************************************************************
void
......@@ -359,6 +362,7 @@ avtXmdvWriter::WriteChunk(vtkDataSet *ds, int chunk)
ofile << minK << "\t" << maxK << "\t10" << endl;
}
ofile << std::scientific << std::setprecision(16);
for (j = 0 ; j < nvals ; j++)
{
if (writeOutCoordinates)
......
......@@ -225,6 +225,8 @@ enhancements and bug-fixes that were added to this release.</p>
<li><TT>build_visit</TT> will pause when notifying the user that it cannot
find required programs for the curses-based interface.</li>
<li>Fixed a parallel bug with DDFs that caused all processors to unnecessarily write results to disk.</li>
<li>The Xmdv writer now writes numbers with more precision.</li>
<li>Save as curve now writes numbers with more precision.</li>
</ul>
<a name="Config_changes"></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment