Commit 3ab5ffcf authored by Alexander Nikolas Breuer's avatar Alexander Nikolas Breuer
Browse files

Added convergence plots for 2d advection.

parent 883dc742
......@@ -7,3 +7,4 @@ Used commands:
CXX=mpiCC ./build.sh
OMP_NUM_THREADS=4 ./run_all.sh
./vis.sh 2>&1 | tee vis.sh.log
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (alex.breuer AT uni-jena.de)
#
# @section LICENSE
# Copyright (c) 2021, Friedrich Schiller University Jena
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# @section DESCRIPTION
# Plots the results.
##
date
mkdir vis
for type in quad4r tria3
do
for ts in gts lts
do
# ignore lts settings for quad4r elements
if [[ ${ts} == lts && ${type} == quad4r ]]
then
continue
fi
for n_parts in 1 8
do
for ro in "" "_reorder_only"
do
if [[ ${ro} == "_reorder_only" ]] && [[ ${n_parts} != "8" || ${ts} != "gts" ]]
then
continue
fi
for n_cfr in 1 4 8
do
for cr in $(seq 0 $(expr ${n_cfr} - 1))
do
echo "working on"
echo " type: ${type}"
echo " ts: ${ts}"
echo " n_parts: ${n_parts}"
echo " ro: ${ro}"
echo " n_cfr: ${n_cfr}"
echo " cr: ${cr}"
conv_plot.py --xdir . \
--xregexp ${type}_oORDER_TAG_${n_cfr}/errors/${type}_${ts}_cl_REFINEMENT_TAG_pa_${n_parts}${ro}.xml \
--pdf vis/${type}_${ts}_cfr_${cr}_${n_cfr}_pa_${n_parts}${ro}.pdf \
--cfrfilter=${cr}
done
done
done
done
done
done
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment