[cig-commits] [commit] rajesh-petsc-schur: Changed the shape of E->trace.thetamin as part of caps_per_proc_removal (21e9824)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 19:13:47 PST 2014


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

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

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

commit 21e98240460477d251dcd33288da27748d3ac426
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date:   Wed Sep 24 13:21:34 2014 -0700

    Changed the shape of E->trace.thetamin as part of caps_per_proc_removal


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

21e98240460477d251dcd33288da27748d3ac426
 lib/Full_tracer_advection.c | 6 +++---
 lib/tracer_defs.h           | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/Full_tracer_advection.c b/lib/Full_tracer_advection.c
index 58bac9d..931c707 100644
--- a/lib/Full_tracer_advection.c
+++ b/lib/Full_tracer_advection.c
@@ -1371,7 +1371,7 @@ static void make_regular_grid(struct All_variables *E)
             E->trace.numtheta=numtheta;
             E->trace.numphi=numphi;
             E->trace.thetamax=thetamax;
-            E->trace.thetamin[CPPR]=thetamin;
+            E->trace.thetamin=thetamin;
             E->trace.phimax[CPPR]=phimax;
             E->trace.phimin[CPPR]=phimin;
             E->trace.numregel=numregel;
@@ -2747,12 +2747,12 @@ static int iget_regel(struct All_variables *E,
 
     /* first check whether theta is in range */
 
-    if (theta<E->trace.thetamin[CPPR]) return -99;
+    if (theta<E->trace.thetamin) return -99;
     if (theta>E->trace.thetamax) return -99;
 
     /* get ntheta, nphi on regular mesh */
 
-    rdum=theta-E->trace.thetamin[CPPR];
+    rdum=theta-E->trace.thetamin;
     idum=rdum/E->trace.deltheta;
     *ntheta=idum+1;
 
diff --git a/lib/tracer_defs.h b/lib/tracer_defs.h
index 0a6a85b..53e1e7b 100644
--- a/lib/tracer_defs.h
+++ b/lib/tracer_defs.h
@@ -118,7 +118,7 @@ struct TRACE{
     double deltheta;
     double delphi;
     double thetamax;
-    double thetamin[13];
+    double thetamin;
     double phimax[13];
     double phimin[13];
     int *regnodetoel[13];



More information about the CIG-COMMITS mailing list