aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@f4913095-0e4f-0410-abea-a123d184f1f3>2005-04-18 11:29:24 +0000
committerschnetter <schnetter@f4913095-0e4f-0410-abea-a123d184f1f3>2005-04-18 11:29:24 +0000
commit433340cb49251d5e7bcf21a09d6c8dd76b039acb (patch)
tree16a050a353634358699c37b94331ce69a63c50d6
parent4418c9485d2948f96d381123bd56a2acc942df7e (diff)
Correct indexing while initialising norm arrays
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Norms/trunk@14 f4913095-0e4f-0410-abea-a123d184f1f3
-rw-r--r--src/Compute_Norm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compute_Norm.c b/src/Compute_Norm.c
index 22bf952..20c060b 100644
--- a/src/Compute_Norm.c
+++ b/src/Compute_Norm.c
@@ -49,9 +49,9 @@ void Norms_Compute_Norms (CCTK_ARGUMENTS)
kend = cctk_lsh[2] - cctk_nghostzones[2];
/* initialise boundaries */
- for (k=0;k<cctk_lsh[0];k++) {
+ for (k=0;k<cctk_lsh[2];k++) {
for (j=0;j<cctk_lsh[1];j++) {
- for (i=0;i<cctk_lsh[2];i++) {
+ for (i=0;i<cctk_lsh[0];i++) {
index=CCTK_GFINDEX3D(cctkGH,i,j,k);
diff_term[index]=0.;
}