[cig-commits] [commit] rajesh-petsc-schur: cleaned up assemble_div_u; results dont match master (1e6953f)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 19:03:55 PST 2014


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

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

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

commit 1e6953fcd240466eb5673977cc70772f2b3052d1
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date:   Tue Sep 9 13:18:16 2014 -0700

    cleaned up assemble_div_u; results dont match master


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

1e6953fcd240466eb5673977cc70772f2b3052d1
 lib/Element_calculations.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/Element_calculations.c b/lib/Element_calculations.c
index 713e262..c577c52 100644
--- a/lib/Element_calculations.c
+++ b/lib/Element_calculations.c
@@ -713,8 +713,8 @@ void assemble_div_u(struct All_variables *E,
     const int npno=E->lmesh.NPNO[level];
 
   for(m=1;m<=E->sphere.caps_per_proc;m++)
-    for(e=1;e<=npno;e++)
-	divU[m][e] = 0.0;
+    for(e=0;e<npno;e++)
+      divU[m][e] = 0.0;
 
   for(m=1;m<=E->sphere.caps_per_proc;m++)
        for(a=1;a<=ends;a++)   {
@@ -730,7 +730,6 @@ void assemble_div_u(struct All_variables *E,
 	    }
 	 }
 
-    return;
 }
 
 



More information about the CIG-COMMITS mailing list