[cig-commits] [commit] rajesh-petsc-schur: Eliminated the 5th argument of get_side_x_cart, which was set to the caps_per_proc loop variable (eb01351)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 19:10:09 PST 2014


Repository : https://github.com/geodynamics/citcoms

On branch  : rajesh-petsc-schur
Link       : https://github.com/geodynamics/citcoms/compare/464e1b32299b15819f93efd98d969cddb84dfe51...f97ae655a50bdbd6dac1923a3471ee4dae178fbd

>---------------------------------------------------------------

commit eb01351e0ef661c8fbc3c086e2eff7164d9a7d6c
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date:   Thu Sep 18 13:07:55 2014 -0700

    Eliminated the 5th argument of get_side_x_cart, which was set to the caps_per_proc loop variable


>---------------------------------------------------------------

eb01351e0ef661c8fbc3c086e2eff7164d9a7d6c
 lib/Size_does_matter.c | 11 +++++------
 lib/prototypes.h       |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/lib/Size_does_matter.c b/lib/Size_does_matter.c
index 462ae73..d438216 100644
--- a/lib/Size_does_matter.c
+++ b/lib/Size_does_matter.c
@@ -243,8 +243,7 @@ void get_rtf_at_ppts(struct All_variables *E, int m, int lev, int el,
 }
 
 
-void get_side_x_cart(struct All_variables *E, double xx[4][5],
-		     int el, int side, int m)
+void get_side_x_cart(struct All_variables *E, double xx[4][5], int el, int side)
 {
   double to,fo,dxdy[4][4];
   int i, node, s;
@@ -308,7 +307,7 @@ void construct_surf_det (E)
 
   for (es=1;es<=E->lmesh.snel;es++)   {
     el = es * E->lmesh.elz;
-    get_side_x_cart(E, xx, el, SIDE_TOP, CPPR);
+    get_side_x_cart(E, xx, el, SIDE_TOP);
 
     for(k=1;k<=oned;k++)    { /* all of the vpoints*/
       for(d=1;d<=E->mesh.nsd-1;d++)
@@ -354,7 +353,7 @@ void construct_bdry_det(struct All_variables *E)
       el = E->boundary.element[CPPR][es];
 
       for (side=SIDE_BEGIN; side<=SIDE_END; side++) {
-	get_side_x_cart(E, xx, el, side, CPPR);
+	get_side_x_cart(E, xx, el, side);
 
 	for(k=1;k<=oned;k++) { /* all of the vpoints*/
 
@@ -396,7 +395,7 @@ void get_global_1d_shape_fn(E,el,GM,dGammax,top)
 
   for (ii=0;ii<=top;ii++)   {   /* ii=0 for bottom and ii=1 for top */
 
-    get_side_x_cart(E, xx, el, ii+1, CPPR);
+    get_side_x_cart(E, xx, el, ii+1);
 
     for(k=1;k<=oned;k++)    { /* all of the vpoints*/
       for(d=1;d<=E->mesh.nsd-1;d++)
@@ -499,7 +498,7 @@ void get_global_side_1d_shape_fn(E,el,GM,GMx,dGamma,side)
   const int oned = onedvpoints[E->mesh.nsd];
   double xx[4][5],dxda[4][4];
 
-  get_side_x_cart(E, xx, el, side, CPPR);
+  get_side_x_cart(E, xx, el, side);
 
   for(k=1;k<=oned;k++)    {
 
diff --git a/lib/prototypes.h b/lib/prototypes.h
index 1657fd6..283b22a 100644
--- a/lib/prototypes.h
+++ b/lib/prototypes.h
@@ -447,7 +447,7 @@ void twiddle_thumbs(struct All_variables *);
 void construct_shape_function_derivatives(struct All_variables *);
 void get_rtf_at_vpts(struct All_variables *, int, int, int, double [4][9]);
 void get_rtf_at_ppts(struct All_variables *, int, int, int, double [4][9]);
-void get_side_x_cart(struct All_variables *, double [4][5], int, int, int);
+void get_side_x_cart(struct All_variables *, double [4][5], int, int);
 void construct_surf_det(struct All_variables *);
 void construct_bdry_det(struct All_variables *);
 void get_global_1d_shape_fn(struct All_variables *, int, struct Shape_function1 *, struct Shape_function1_dA *, int);



More information about the CIG-COMMITS mailing list