aboutsummaryrefslogtreecommitdiff
path: root/src/FlatBoundary.c
diff options
context:
space:
mode:
authorallen <allen@6a38eb6e-646e-4a02-a296-d141613ad6c4>1999-07-28 15:20:59 +0000
committerallen <allen@6a38eb6e-646e-4a02-a296-d141613ad6c4>1999-07-28 15:20:59 +0000
commit675e3ec01b7f091e20df1ae2026ad5612ea1b165 (patch)
tree8e8f46bd9d2cbd0b7b74c72a5e1c0e81fa716a41 /src/FlatBoundary.c
parent694933652035207c4ccf94777aa2abf2da8bfc34 (diff)
Fixed infinite loop bug found by Thomas and Ryoji
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@9 6a38eb6e-646e-4a02-a296-d141613ad6c4
Diffstat (limited to 'src/FlatBoundary.c')
-rw-r--r--src/FlatBoundary.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FlatBoundary.c b/src/FlatBoundary.c
index 5681754..4c2ba00 100644
--- a/src/FlatBoundary.c
+++ b/src/FlatBoundary.c
@@ -1,9 +1,9 @@
/*@@
- @file FlatBoundaryWrappers.c
+ @file FlatBoundary.c
@date Mon Mar 15 15:09:00 1999
- @author Gerd Lanfermann
+ @author Gerd Lanfermann, Gabrielle Allen
@desc
- Flat boundary conditions for a given group or GF
+ Flat boundary conditions for a given GF group or single GF
@enddesc
@@*/
@@ -163,9 +163,9 @@ void ApplyFlat3D(cGH *GH,int *doBC,int *lsh,int *stencil_size,CCTK_REAL *var)
printf("Applying flat boundary for lower x\n");
#endif
- for (k=0;k=lsh[2];k++)
+ for (k=0;k<lsh[2];k++)
{
- for (j=0;j=lsh[1];j++)
+ for (j=0;j<lsh[1];j++)
{
for (sw=0;sw<stencil_size[0];sw++)
{