#!/usr/bin/env bash

set -euo pipefail

case_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
cd "$case_dir"

printf 'y\n' | "$case_dir/clean.sh" > /dev/null

mkdir -p log

RobustMesh011 <<'ROBUSTMESH_COMMANDS' 2>&1 | tee log/generateMesh2D
generateMesh2D
exit
ROBUSTMESH_COMMANDS

openfoam2406 checkMesh 2>&1 | tee log/checkMesh
