[cig-commits] commit: Fix and add comments

Mercurial hg at geodynamics.org
Sun Apr 24 06:02:29 PDT 2011


changeset:   199:ebdaba8b7126
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Sun Apr 24 06:01:09 2011 -0700
files:       src/P_Boundary_Refine/Update_P_2D.C src/quad_offset_interpolate.h
description:
Fix and add comments


diff -r 25cba6ed00a5 -r ebdaba8b7126 src/P_Boundary_Refine/Update_P_2D.C
--- a/src/P_Boundary_Refine/Update_P_2D.C	Sat Apr 23 15:19:59 2011 -0700
+++ b/src/P_Boundary_Refine/Update_P_2D.C	Sun Apr 24 06:01:09 2011 -0700
@@ -5,19 +5,19 @@
 
          i-1      i       i+1
 
-       ------- -------
+        ------- -------
        |       |       |
-   j-1 |  C    |   C   |   C
+   j-1 |   C   |   C   |   C
        |       |       |
-       ------- -------
+        ------- -------
        |       |f- F-  |
    j   |   C   |F_ C   |   C
        |       |f+ F+  |
-       ------- -------
+        ------- -------
        |       |       |
    j+1 |   C   |   C   |   C
        |       |       |
-       ------- -------
+        ------- -------
 
    C= a + b*x + c*x^2 + d*y + e*y^2 + f*x*y
 
diff -r 25cba6ed00a5 -r ebdaba8b7126 src/quad_offset_interpolate.h
--- a/src/quad_offset_interpolate.h	Sat Apr 23 15:19:59 2011 -0700
+++ b/src/quad_offset_interpolate.h	Sun Apr 24 06:01:09 2011 -0700
@@ -19,6 +19,8 @@ inline void quad_offset_interpolate(cons
   fine_minus=center + (5*d_minus - 3*d_plus)/32;
 }
 
+/* Interpolate to only the fine point closest to the "plus" coarse point. */
+
 inline double quad_offset_interpolate(const double &plus, const double &center,
                                       const double &minus)
 {



More information about the CIG-COMMITS mailing list