[cig-commits] [commit] rajesh-petsc-schur: Eliminated the 2nd argument of expand_later_array, which was set to the caps_per_proc loop variable (3e0ccea)

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


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

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

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

commit 3e0cceaf54a740ec32fb19fa8ac8f7e80bc2390d
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date:   Wed Sep 17 15:53:28 2014 -0700

    Eliminated the 2nd argument of expand_later_array, which was set to the caps_per_proc loop variable


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

3e0cceaf54a740ec32fb19fa8ac8f7e80bc2390d
 lib/Regional_tracer_advection.c | 2 +-
 lib/Tracer_setup.c              | 6 +++---
 lib/prototypes.h                | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/Regional_tracer_advection.c b/lib/Regional_tracer_advection.c
index bac98ad..913381e 100644
--- a/lib/Regional_tracer_advection.c
+++ b/lib/Regional_tracer_advection.c
@@ -855,7 +855,7 @@ static void put_found_tracers(struct All_variables *E,
             ilast = E->trace.ilater[CPPR];
 
             if (E->trace.ilater[CPPR] > (E->trace.ilatersize[CPPR]-5))
-                expand_later_array(E, CPPR);
+                expand_later_array(E);
 
             for (pp=0; pp<E->trace.number_of_tracer_quantities; pp++)
                 E->trace.rlater[CPPR][pp][ilast] = recv[ipos+pp];
diff --git a/lib/Tracer_setup.c b/lib/Tracer_setup.c
index 091e53b..f364435 100644
--- a/lib/Tracer_setup.c
+++ b/lib/Tracer_setup.c
@@ -56,7 +56,7 @@ void gzip_file(char *);
 
 int icheck_that_processor_shell(struct All_variables *E,
                                        int j, int nprocessor, double rad);
-void expand_later_array(struct All_variables *E, int j);
+void expand_later_array(struct All_variables *E);
 void expand_tracer_arrays(struct All_variables *E, int j);
 void tracer_post_processing(struct All_variables *E);
 void allocate_tracer_arrays(struct All_variables *E, int number_of_tracers);
@@ -1549,7 +1549,7 @@ static void put_away_later(struct All_variables *E, int j, int it)
 
     E->trace.ilater[CPPR]++;
 
-    if (E->trace.ilater[CPPR] >= (E->trace.ilatersize[CPPR]-5)) expand_later_array(E,j);
+    if (E->trace.ilater[CPPR] >= (E->trace.ilatersize[CPPR]-5)) expand_later_array(E);
 
     /* stack basic and extra quantities together (basic first) */
 
@@ -1566,7 +1566,7 @@ static void put_away_later(struct All_variables *E, int j, int it)
 
 /****** EXPAND LATER ARRAY *****************************************/
 
-void expand_later_array(struct All_variables *E, int j)
+void expand_later_array(struct All_variables *E)
 {
 
     int inewsize;
diff --git a/lib/prototypes.h b/lib/prototypes.h
index 6322cef..79385c4 100644
--- a/lib/prototypes.h
+++ b/lib/prototypes.h
@@ -512,7 +512,7 @@ void sphere_to_cart(struct All_variables *, double, double, double, double *, do
 void get_neighboring_caps(struct All_variables *);
 void allocate_tracer_arrays(struct All_variables *, int);
 void expand_tracer_arrays(struct All_variables *, int);
-void expand_later_array(struct All_variables *, int);
+void expand_later_array(struct All_variables *);
 int icheck_processor_shell(struct All_variables *, int, double);
 int icheck_that_processor_shell(struct All_variables *, int, int, double);
 /* Viscosity_structures.c */



More information about the CIG-COMMITS mailing list