VTK output: start writing at sequence number 0

i.e., in most cases the initial solution will be written into file
$SIM_NAME-00000.vtu and each time step will be written to the file
with the same number as the one printed during the simulation. (note
that this statement does not apply if the visualization files are not
written for all time steps.)
This commit is contained in:
Andreas Lauser 2016-08-13 12:41:59 +02:00
parent 17670977f0
commit c4b3864bca

View File

@ -92,7 +92,7 @@ case "$TEST_TYPE" in
echo "RND: '$RND'"
SIM_NAME=$(grep "Applying the initial solution of the" "test-$RND.log" | sed "s/.*\"\(.*\)\".*/\1/" | head -n1)
NUM_TIMESTEPS=$(( $(grep "Time step [0-9]* done" "test-$RND.log" | wc -l) + 1))
NUM_TIMESTEPS=$(( $(grep "Time step [0-9]* done" "test-$RND.log" | wc -l)))
TEST_RESULT=$(printf "%s-%05i" "$SIM_NAME" "$NUM_TIMESTEPS")
TEST_RESULT=$(ls -- "$TEST_RESULT".*)
rm "test-$RND.log"
@ -122,7 +122,7 @@ case "$TEST_TYPE" in
fi
SIM_NAME=$(grep "Applying the initial solution of the" "test-$RND.log" | sed "s/.*\"\(.*\)\".*/\1/" | head -n1)
NUM_TIMESTEPS=$(( $(grep "Time step [0-9]* done" "test-$RND.log" | wc -l) + 1))
NUM_TIMESTEPS=$(( $(grep "Time step [0-9]* done" "test-$RND.log" | wc -l)))
rm "test-$RND.log"
echo "Simulation name: '$SIM_NAME'"