[cig-commits] r9125 - cs/spatialdata-0.1/trunk/libsrc/spatialdb

brad at geodynamics.org brad at geodynamics.org
Wed Jan 23 18:20:16 PST 2008


Author: brad
Date: 2008-01-23 18:20:15 -0800 (Wed, 23 Jan 2008)
New Revision: 9125

Modified:
   cs/spatialdata-0.1/trunk/libsrc/spatialdb/SCECCVMH.cc
Log:
Better documentation of Vp query routine.

Modified: cs/spatialdata-0.1/trunk/libsrc/spatialdb/SCECCVMH.cc
===================================================================
--- cs/spatialdata-0.1/trunk/libsrc/spatialdb/SCECCVMH.cc	2008-01-24 02:10:29 UTC (rev 9124)
+++ cs/spatialdata-0.1/trunk/libsrc/spatialdb/SCECCVMH.cc	2008-01-24 02:20:15 UTC (rev 9125)
@@ -296,14 +296,16 @@
 { // _queryVp
   int outsideVoxet = 0;
 
+  // Try first querying low-res model
   outsideVoxet = _laLowResVp->query(vp, _xyzUTM);
   if (!outsideVoxet) {
+    // if inside low-res, try high-res model
     double vpHR = 0.0;
     outsideVoxet = _laHighResVp->query(&vpHR, _xyzUTM);
-    if (!outsideVoxet)
+    if (!outsideVoxet) // if inside high-res model, use it
       *vp = vpHR;
-    else
-      outsideVoxet = 0; // use low-res value
+    else // not in high-res model, so use low-res value
+      outsideVoxet = 0;
   } else
     outsideVoxet = _crustMantleVp->queryNearest(vp, _xyzUTM);
 



More information about the cig-commits mailing list