[cig-commits] [commit] rajesh-petsc-schur: fixed a bug due to missing for loop parenthesis in construct_node_maps (5be51fb)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Wed Nov 5 19:11:00 PST 2014
Repository : https://github.com/geodynamics/citcoms
On branch : rajesh-petsc-schur
Link : https://github.com/geodynamics/citcoms/compare/464e1b32299b15819f93efd98d969cddb84dfe51...f97ae655a50bdbd6dac1923a3471ee4dae178fbd
>---------------------------------------------------------------
commit 5be51fb341775c2fa18990f9f6bd392f53fa51b2
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date: Fri Sep 19 12:41:44 2014 -0700
fixed a bug due to missing for loop parenthesis in construct_node_maps
>---------------------------------------------------------------
5be51fb341775c2fa18990f9f6bd392f53fa51b2
lib/Construct_arrays.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Construct_arrays.c b/lib/Construct_arrays.c
index ca7d216..d16b688 100644
--- a/lib/Construct_arrays.c
+++ b/lib/Construct_arrays.c
@@ -246,7 +246,7 @@ void construct_node_maps(E)
int max_eqn;
dims2 = dims-1;
- for(lev=E->mesh.gridmax;lev>=E->mesh.gridmin;lev--)
+ for(lev=E->mesh.gridmax;lev>=E->mesh.gridmin;lev--) {
neq=E->lmesh.NEQ[lev];
nno=E->lmesh.NNO[lev];
noxz = E->lmesh.NOX[lev]*E->lmesh.NOZ[lev];
@@ -255,7 +255,6 @@ void construct_node_maps(E)
nox = E->lmesh.NOX[lev];
max_eqn = 14*dims; // Is this 14 supposed to be NCS?
matrix = max_eqn*nno;
-
E->Node_map[lev][CPPR]=(int *) malloc (matrix*sizeof(int));
for(i=0;i<matrix;i++)
@@ -302,6 +301,7 @@ void construct_node_maps(E)
for(i=0;i<matrix;i++)
fprintf(E->fp_out, "%d %d\n", i, E->Node_map[lev][CPPR][i]);
}
+ }
}
More information about the CIG-COMMITS
mailing list