Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Ulrich committed Mar 6, 2024
1 parent 39f5a55 commit 86a892d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions seissolxdmf/seissolxdmf/seissolxdmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ def Read1dData(self, dataName, nElements, isInt=False):
filename, hdf5var = splitArgs
myData = self.ReadHdf5DatasetChunk(path + filename, hdf5var, 0, MemDimension)
else:
# The Dimensions of the 1D arrays (e.g. partition) in the xdmf files
# are not not accounting for potential 0 padding (bug in xdmfwriter?).
# Therefore, we precise that there is only one "time-step" to read at location 0
# by setting idt=0
filename = dataLocation
myData = self.ReadSimpleBinaryFile(path + dataLocation, nElements, data_prec, isInt, 0)
return myData
Expand Down

0 comments on commit 86a892d

Please sign in to comment.