mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user