foamSequenceVTKFiles: generalize method to list files chronologically

Patch contributed by Bruno Santos
Resolves bug-report https://bugs.openfoam.org/view.php?id=2615
This commit is contained in:
Henry Weller
2017-07-18 15:25:48 +01:00
parent 829a109b2f
commit bce6b7a728

View File

@ -112,9 +112,9 @@ do
# Create list of VTK files, ordered by time step
file_list=$(echo "$files" | \
tr " " "\n" | \
grep "$n.vtk" | \
grep -w "$n\.vtk" | \
awk -F'/' '{print($(NF-1)" "$0)}' | \
sort -k 1 -g | \
LC_ALL=C sort -k 1 -g | \
cut -d' ' -f2)
i=0