[cig-commits] [commit] rajesh-petsc-schur: Eliminated the 3rd argument of generate_random_tracers, which was set to the caps_per_proc loop variable (9f0bbc3)

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


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

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

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

commit 9f0bbc367466914bd8cdc6441a0777ab9911e90a
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date:   Thu Sep 18 09:44:36 2014 -0700

    Eliminated the 3rd argument of generate_random_tracers, which was set to the caps_per_proc loop variable


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

9f0bbc367466914bd8cdc6441a0777ab9911e90a
 lib/Tracer_setup.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/lib/Tracer_setup.c b/lib/Tracer_setup.c
index ebf9de1..080b79e 100644
--- a/lib/Tracer_setup.c
+++ b/lib/Tracer_setup.c
@@ -71,8 +71,7 @@ static void find_tracers(struct All_variables *E);
 static void predict_tracers(struct All_variables *E);
 static void correct_tracers(struct All_variables *E);
 static void make_tracer_array(struct All_variables *E);
-static void generate_random_tracers(struct All_variables *E,
-                                    int tracers_cap, int j);
+static void generate_random_tracers(struct All_variables *E, int tracers_cap);
 static void read_tracer_file(struct All_variables *E);
 static void read_old_tracer_file(struct All_variables *E);
 static void check_sum(struct All_variables *E);
@@ -737,7 +736,7 @@ static void make_tracer_array(struct All_variables *E)
 
         fprintf(E->trace.fpt,"\nGenerating %d Tracers\n",tracers_cap);
 
-        generate_random_tracers(E, tracers_cap, CPPR);
+        generate_random_tracers(E, tracers_cap);
 
 
 
@@ -749,8 +748,7 @@ static void make_tracer_array(struct All_variables *E)
 
 
 
-static void generate_random_tracers(struct All_variables *E,
-                                    int tracers_cap, int j)
+static void generate_random_tracers(struct All_variables *E, int tracers_cap)
 {
     void cart_to_sphere();
     int kk;
@@ -843,8 +841,6 @@ static void generate_random_tracers(struct All_variables *E,
         E->trace.basicq[CPPR][5][kk]=z;
 
     } /* end while */
-
-    return;
 }
 
 



More information about the CIG-COMMITS mailing list