aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2005-01-28 15:21:01 +0000
committerschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2005-01-28 15:21:01 +0000
commit833f438bef6f5124db58796299ba99be3d6ba848 (patch)
tree06b90f9de09705d7fa79210e10e7dba08ca70c0f
parentd72fd6f339c8b57d6bd3944ef4009e811acc745e (diff)
Reformat comment
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@39 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8
-rw-r--r--src/slab.h126
1 files changed, 63 insertions, 63 deletions
diff --git a/src/slab.h b/src/slab.h
index da4fbfb..0ac241b 100644
--- a/src/slab.h
+++ b/src/slab.h
@@ -11,69 +11,69 @@ extern "C"
#include "cctk.h"
/*
- Slab_Transfer copies a slab from one array into a slab of another
- array.
-
- The src and dst variables describe the source and the destination
- slab, respectively.
-
- The variables gsh, lbnd, and lsh describe the shape and distribution
- of the array containing the slab. They are equivalent to the
- corresponding quantities in the cGH structure.
-
- off, str, and len describe the location and shape of the slab within
- the array. off is the offset, i.e. the location of the "first"
- corner of the slab. str is the stride, i.e. the distance between to
- grid points in the slab. The stride can be negative. len is the
- length, i.e. the number of grid points making up the slab. len does
- not include the grid points that are skipped if the stride is larger
- than one.
-
- xpose describes a possible permutation of the coordinate axes
- between the slabs. It is source-axis = xpose[destination-axis].
-
- flip describes a possible inversion of the coordinate axes (from the
- point of view of the destination slab). It is source-axis =
- xpose[flip[destination-axis]].
-
- The corresponding lengths of the source and the destination slabs
- must be equal, i.e. for all d: src.len[xpose[d]] = dst.len[d].
-
- The slabs are copied according to
-
- . dst[dst.off + I * dst.str] = src[src.off + J * src.str]
-
- where the multi-indices I and J have the ranges specified by dst.len
- and src.len, respectively, and I and J are related by the
- transposition
-
- . J = xpose[flip[I]]
-
-
-
- Restrictions:
-
- . dim >= 0
-
- . gsh >= 0
- . lbnd >= 0
- . lsh >= 0
- . lbnd + lsh <= gsh
- . lbbox and ubbox must be booleans, i.e. either 0 or 1
- . nghostzones >= 0
-
- . len >= 0
- . str != 0
- . off >= 0
- . off < gsh
- . off + (len-1) * str >= 0
- . off + (len-1) * str < gsh
-
- . xpose must be a permutation of 0 ... dim-1
- . flip must be a boolean, i.e. either 0 or 1
-
- The source and the destination arrays may be the same.
-*/
+ * Slab_Transfer copies a slab from one array into a slab of another
+ * array.
+ *
+ * The src and dst variables describe the source and the destination
+ * slab, respectively.
+ *
+ * The variables gsh, lbnd, and lsh describe the shape and
+ * distribution of the array containing the slab. They are equivalent
+ * to the corresponding quantities in the cGH structure.
+ *
+ * off, str, and len describe the location and shape of the slab
+ * within the array. off is the offset, i.e., the location of the
+ * "first" corner of the slab. str is the stride, i.e., the distance
+ * between to grid points in the slab. The stride can be negative.
+ * len is the length, i.e., the number of grid points making up the
+ * slab. len does not include the grid points that are skipped if the
+ * stride is larger than one.
+ *
+ * xpose describes a possible permutation of the coordinate axes
+ * between the slabs. It is source-axis = xpose[destination-axis].
+ *
+ * flip describes a possible inversion of the coordinate axes (from
+ * the point of view of the destination slab). It is source-axis =
+ * xpose[flip[destination-axis]].
+ *
+ * The corresponding lengths of the source and the destination slabs
+ * must be equal, i.e., for all d: src.len[xpose[d]] = dst.len[d].
+ *
+ * The slabs are copied according to
+ *
+ * dst[dst.off + I * dst.str] = src[src.off + J * src.str]
+ *
+ * where the multi-indices I and J have the ranges specified by
+ * dst.len and src.len, respectively, and I and J are related by the
+ * transposition
+ *
+ * J = xpose[flip[I]]
+ *
+ *
+ *
+ * Restrictions:
+ *
+ * dim >= 0
+ *
+ * gsh >= 0
+ * lbnd >= 0
+ * lsh >= 0
+ * lbnd + lsh <= gsh
+ * lbbox and ubbox must be booleans, i.e., either 0 or 1
+ * nghostzones >= 0
+ *
+ * len >= 0
+ * str != 0
+ * off >= 0
+ * off < gsh
+ * off + (len-1) * str >= 0
+ * off + (len-1) * str < gsh
+ *
+ * xpose must be a permutation of 0 ... dim-1
+ * flip must be a boolean, i.e., either 0 or 1
+ *
+ * The source and the destination arrays may be the same.
+ */
#define SLAB_MAXDIM 3