[cig-commits] [commit] rajesh-petsc-schur: Got rid of an overlooked caps_per_proc for loop in Advection_diffusion.c (e65e458)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 19:08:21 PST 2014


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

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

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

commit e65e458c64e56cd1cda249a124f3b9c3430ed38c
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date:   Wed Sep 17 15:09:35 2014 -0700

    Got rid of an overlooked caps_per_proc for loop in Advection_diffusion.c


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

e65e458c64e56cd1cda249a124f3b9c3430ed38c
 lib/Advection_diffusion.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/Advection_diffusion.c b/lib/Advection_diffusion.c
index 1cf38dc..26710b3 100644
--- a/lib/Advection_diffusion.c
+++ b/lib/Advection_diffusion.c
@@ -296,7 +296,6 @@ static void set_diffusion_timestep(struct All_variables *E)
   float global_fmin();
 
   diff_timestep = 1.0e8;
-  for(m=1;m<=E->sphere.caps_per_proc;m++)
     for(el=1;el<=E->lmesh.nel;el++)  {
       for(d=1;d<=E->mesh.nsd;d++)    {
 	ts = E->eco[CPPR][el].size[d] * E->eco[CPPR][el].size[d];
@@ -306,8 +305,6 @@ static void set_diffusion_timestep(struct All_variables *E)
 
   diff_timestep = global_fmin(E,diff_timestep);
   E->advection.diff_timestep = 0.5 * diff_timestep;
-
-  return;
 }
 
 



More information about the CIG-COMMITS mailing list