From a8c740ef9f07ee2f840cbfee8519f66610dab678 Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Sun, 28 Jan 2024 11:03:32 -0500 Subject: [PATCH] Test benchmarking (one case, short) (#323) Co-authored-by: Henry Le Berre --- .github/workflows/bench.yml | 9 +++------ benchmarks/3D_shockdroplet/case.py | 3 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index c2c31f83e..b1cd4ee1f 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -32,13 +32,10 @@ jobs: (cd master && bash .github/workflows/phoenix/submit.sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) & wait %1 && wait %2 - - name: Generate Comment + - name: Generate & Post Comment run: | - COMMENT_MSG=`./mfc.sh bench_diff master/bench-${{ matrix.device }}.yaml pr/bench-${{ matrix.device }}.yaml` - echo "COMMENT_MSG=\"$COMMENT_MSG\"" >> $GITHUB_ENV - - - name: Post Comment - run: echo "$COMMENT_MSG" + . ./mfc.sh load -c p -m g + ./mfc.sh bench_diff master/bench-${{ matrix.device }}.yaml pr/bench-${{ matrix.device }}.yaml - name: Archive Logs uses: actions/upload-artifact@v3 diff --git a/benchmarks/3D_shockdroplet/case.py b/benchmarks/3D_shockdroplet/case.py index 1fae94e45..650bdf89d 100644 --- a/benchmarks/3D_shockdroplet/case.py +++ b/benchmarks/3D_shockdroplet/case.py @@ -15,7 +15,8 @@ # cavity relative eccentricity (distance between radii) ecc = 0.564 -# initial shock distance from the y axis. Note that the droplet center is located at y = 0. Thus, the distance from the shock to +# initial shock distance from the y axis. Note that the droplet center is located at y = 0. +# Thus, the distance from the shock to # the droplet is about D0/8 ISD = 5.0/8 * D0