[cig-commits] r15057 - short/3D/PyLith/trunk/libsrc/meshio
brad at geodynamics.org
brad at geodynamics.org
Tue May 26 13:25:19 PDT 2009
Author: brad
Date: 2009-05-26 13:25:19 -0700 (Tue, 26 May 2009)
New Revision: 15057
Modified:
short/3D/PyLith/trunk/libsrc/meshio/OutputManager.cc
Log:
Removed some debugging output. Don't need to scale values during dimensionalization if scale is 1.0.
Modified: short/3D/PyLith/trunk/libsrc/meshio/OutputManager.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/OutputManager.cc 2009-05-26 18:58:33 UTC (rev 15056)
+++ short/3D/PyLith/trunk/libsrc/meshio/OutputManager.cc 2009-05-26 20:25:19 UTC (rev 15057)
@@ -172,17 +172,13 @@
const field_type&
pylith::meshio::OutputManager<mesh_type, field_type>::_dimension(const field_type& fieldIn)
{ // _dimension
+ if (1.0 == fieldIn.scale())
+ return fieldIn;
if (fieldIn.addDimensionOkay()) {
- std::cout << "Adding dimensions to field '" << fieldIn.label()
- << "'." << std::endl;
fieldIn.dimensionalize();
-
return fieldIn;
} else {
- std::cout << "Creating temporary field to add dimensions to field '"
- << fieldIn.label() << "'." << std::endl;
-
std::string fieldName = "buffer (other)";
switch (fieldIn.vectorFieldType())
{ // switch
More information about the CIG-COMMITS
mailing list