[cig-commits] r11932 - in short/3D/PyLith/trunk/libsrc: bc faults feassemble materials meshio topology

willic3 at geodynamics.org willic3 at geodynamics.org
Fri May 9 09:15:26 PDT 2008


Author: willic3
Date: 2008-05-09 09:15:26 -0700 (Fri, 09 May 2008)
New Revision: 11932

Modified:
   short/3D/PyLith/trunk/libsrc/bc/AbsorbingDampers.cc
   short/3D/PyLith/trunk/libsrc/bc/DirichletBoundary.cc
   short/3D/PyLith/trunk/libsrc/bc/DirichletPoints.cc
   short/3D/PyLith/trunk/libsrc/bc/Neumann.cc
   short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveKin.cc
   short/3D/PyLith/trunk/libsrc/feassemble/CellGeometry.cc
   short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.cc
   short/3D/PyLith/trunk/libsrc/materials/ElasticMaterial.cc
   short/3D/PyLith/trunk/libsrc/materials/Material.cc
   short/3D/PyLith/trunk/libsrc/meshio/GMVFile.cc
   short/3D/PyLith/trunk/libsrc/meshio/GMVFileAscii.cc
   short/3D/PyLith/trunk/libsrc/meshio/MeshIOAscii.cc
   short/3D/PyLith/trunk/libsrc/meshio/PsetFile.cc
   short/3D/PyLith/trunk/libsrc/meshio/PsetFileAscii.cc
   short/3D/PyLith/trunk/libsrc/topology/FieldsManager.cc
Log:
For all code that uses the functions strcasecmp, memcpy, or strcmp, put in
the corresponding include file explicitly.  Some of the include files don't
get included automatically, depending on the compiler.



Modified: short/3D/PyLith/trunk/libsrc/bc/AbsorbingDampers.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/bc/AbsorbingDampers.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/bc/AbsorbingDampers.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -23,6 +23,7 @@
 
 #include <Selection.hh> // USES submesh algorithms
 
+#include <string.h> // USES memcpy()
 #include <assert.h> // USES assert()
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringstream

Modified: short/3D/PyLith/trunk/libsrc/bc/DirichletBoundary.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/bc/DirichletBoundary.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/bc/DirichletBoundary.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -19,6 +19,8 @@
 
 #include <Selection.hh> // USES submesh algorithms
 
+#include <string.h> // USES strcpy()
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringstream

Modified: short/3D/PyLith/trunk/libsrc/bc/DirichletPoints.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/bc/DirichletPoints.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/bc/DirichletPoints.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -17,6 +17,7 @@
 #include "spatialdata/spatialdb/SpatialDB.hh" // USES SpatialDB
 #include "spatialdata/geocoords/CoordSys.hh" // USES CoordSys
 
+#include <string.h> // USES strcpy()
 #include <assert.h> // USES assert()
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringstream

Modified: short/3D/PyLith/trunk/libsrc/bc/Neumann.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/bc/Neumann.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/bc/Neumann.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -23,6 +23,8 @@
 
 #include <Selection.hh> // USES submesh algorithms
 
+#include <string.h> // USES memcpy()
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringstream

Modified: short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveKin.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveKin.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveKin.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -30,6 +30,7 @@
 #include <Selection.hh> // Algorithms for submeshes
 
 #include <math.h> // USES pow(), sqrt()
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 #include <sstream> // USES std::ostringstream
 #include <stdexcept> // USES std::runtime_error

Modified: short/3D/PyLith/trunk/libsrc/feassemble/CellGeometry.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/feassemble/CellGeometry.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/feassemble/CellGeometry.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -16,6 +16,8 @@
 
 #include "petsc.h" // USES PetscLogFlops
 
+#include <strings.h> // USES memcpy()
+
 #include <iostream> // USES std::cerr
 
 // ----------------------------------------------------------------------

Modified: short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/feassemble/IntegratorElasticity.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -21,6 +21,8 @@
 #include "pylith/topology/FieldsManager.hh" // USES FieldsManager
 #include "pylith/utils/array.hh" // USES double_array
 
+#include <string.h> // USES memcpy()
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 #include <stdexcept> // USES std::runtime_error
 

Modified: short/3D/PyLith/trunk/libsrc/materials/ElasticMaterial.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/materials/ElasticMaterial.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/materials/ElasticMaterial.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -17,6 +17,7 @@
 #include "pylith/utils/array.hh" // USES double_array
 #include "pylith/utils/sievetypes.hh" // USES Mesh
 
+#include <string.h> // USES memcpy()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------

Modified: short/3D/PyLith/trunk/libsrc/materials/Material.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/materials/Material.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/materials/Material.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -21,6 +21,8 @@
 
 #include "pylith/utils/sievetypes.hh" // USES Mesh
 
+#include <string.h> // USES memcpy()
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringstream

Modified: short/3D/PyLith/trunk/libsrc/meshio/GMVFile.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/GMVFile.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/meshio/GMVFile.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -18,6 +18,7 @@
 
 #include <fstream> // uses std::fstream
 #include <sstream> // uses std::ostringstream
+#include <string.h> // uses strcmp()
 #include <stdexcept> // USES std::runtime_error
 
 // ----------------------------------------------------------------

Modified: short/3D/PyLith/trunk/libsrc/meshio/GMVFileAscii.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/GMVFileAscii.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/meshio/GMVFileAscii.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -18,6 +18,7 @@
 
 #include <fstream> // USES std::ifstream
 #include <iomanip> // USES std::setw()
+#include <string.h> // USES strcmp()
 #include <assert.h> // USES assert()
 #include <sstream> // USES std::ostringstream
 #include <stdexcept> // USES std::exception

Modified: short/3D/PyLith/trunk/libsrc/meshio/MeshIOAscii.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/MeshIOAscii.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/meshio/MeshIOAscii.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -22,6 +22,7 @@
 #include <petsc.h> // USES MPI
 
 #include <iomanip> // USES setw(), setiosflags(), resetiosflags()
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 #include <fstream> // USES std::ifstream, std::ofstream
 #include <stdexcept> // USES std::runtime_error

Modified: short/3D/PyLith/trunk/libsrc/meshio/PsetFile.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/PsetFile.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/meshio/PsetFile.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -18,6 +18,7 @@
 
 #include <fstream> // uses std::fstream
 #include <sstream> // uses std::ostringstream
+#include <string.h> // uses strcmp()
 #include <stdexcept> // USES std::runtime_error
 
 // ----------------------------------------------------------------

Modified: short/3D/PyLith/trunk/libsrc/meshio/PsetFileAscii.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/PsetFileAscii.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/meshio/PsetFileAscii.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -18,6 +18,7 @@
 
 #include <fstream> // USES std::ifstream
 #include <iomanip> // USES std::setw()
+#include <string.h> // USES strcmp()
 #include <assert.h> // USES assert()
 #include <sstream> // USES std::ostringstream
 #include <stdexcept> // USES std::exception

Modified: short/3D/PyLith/trunk/libsrc/topology/FieldsManager.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/FieldsManager.cc	2008-05-09 15:53:33 UTC (rev 11931)
+++ short/3D/PyLith/trunk/libsrc/topology/FieldsManager.cc	2008-05-09 16:15:26 UTC (rev 11932)
@@ -16,6 +16,7 @@
 
 #include <stdexcept> // USES std::runtime_error
 #include <sstream> // USES std::ostringstream
+#include <strings.h> // USES strcasecmp()
 #include <assert.h> // USES assert()
 
 // ----------------------------------------------------------------------



More information about the cig-commits mailing list