aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2003-07-10 16:33:58 +0000
committertradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2003-07-10 16:33:58 +0000
commit1d84179ab337f680817248a565ecec8c9ea7b0ef (patch)
tree9620f12d27a443e0e9619d885770ab065d38ec82
parentd09e09782f86c381809524eb04e6a381cb6746c7 (diff)
Fixed a bug in dataspace creation: dims[] must be given with highest dimension first.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@45 21a6bef8-4479-4f54-8f8d-0db94a2919ef
-rw-r--r--src/H5IO.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5IO.cc b/src/H5IO.cc
index 5a360f6..c611f0b 100644
--- a/src/H5IO.cc
+++ b/src/H5IO.cc
@@ -148,7 +148,7 @@ int H5IO::createdataspace(int rank,CONST int *dims){
// otherwise, must nuke current dataspace
enddataspace();
}
- for(int i=0;i<rank;i++) dimsf[i]=dims[i];
+ for(int i=0;i<rank;i++) dimsf[rank-i-1]=dims[i];
rankf=rank;
dataspace = H5Screate_simple(rankf, dimsf, NULL);
dataspacevalid=1;