[cig-commits] r4422 -
short/3D/PyLith/branches/pylith-0.8/pylith3d/module
baagaard at geodynamics.org
baagaard at geodynamics.org
Thu Aug 24 15:10:04 PDT 2006
Author: baagaard
Date: 2006-08-24 15:10:03 -0700 (Thu, 24 Aug 2006)
New Revision: 4422
Modified:
short/3D/PyLith/branches/pylith-0.8/pylith3d/module/scanner.cc
Log:
Fixed bug in ReadBounary_PyLith where units were ignored incorrectly. The line with displacement units is read as the last thing in IgnoreComments_PyLith (which causes it to stop). Fix is to remove line reading displacement units.
Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/module/scanner.cc
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/module/scanner.cc 2006-08-24 21:27:30 UTC (rev 4421)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/module/scanner.cc 2006-08-24 22:10:03 UTC (rev 4422)
@@ -71,7 +71,9 @@
f = fopen(bcFilename, "r");CHKERRQ(ierr);
IgnoreComments_PyLith(buf, 2048, f);
/* Ignore displacement units */
- fgets(buf, 2048, f);
+ /* Don't need this one since IgnoreComments reads until "failure".
+ * fgets(buf, 2048, f);
+ */
/* Ignore velocity units */
fgets(buf, 2048, f);
/* Ignore force units */
More information about the cig-commits
mailing list