mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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'"
|
||||
|
||||
Reference in New Issue
Block a user