Skip to content

Commit

Permalink
Reorganize CCE static exec tarball
Browse files Browse the repository at this point in the history
This will require us to edit the python file in the google drive
  • Loading branch information
knelli2 committed Oct 2, 2024
1 parent 95780ff commit 0de17da
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/DeployStaticExecutables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,34 +57,42 @@ jobs:
- name: Copy CCE executables from the container
run: >
mkdir CceExecutables
mkdir ./CceExecutables/ReduceCceWorldtube
mkdir ./CceExecutables/Tests
cp ./tests/InputFiles/Cce/CharacteristicExtract.yaml
./CceExecutables/CharacteristicExtract.yaml
cp ./tests/InputFiles/ReduceCceWorldtube/ReduceCceWorldtube.yaml
./CceExecutables/ReduceCceWorldtube.yaml
./CceExecutables/ReduceCceWorldtube/ReduceCceWorldtube.yaml
for i in CharacteristicExtract ReduceCceWorldtube; do
docker cp static-execs:/work/spectre/build/bin/$i ./CceExecutables;
done
docker cp \
static-execs:/work/spectre/build/bin/CharacteristicExtract \
./CceExecutables/
docker cp static-execs:/work/spectre/build/bin/ReduceCceWorldtube \
./CceExecutables/ReduceCceWorldtube/
- name: Test CCE executable outside of container
run: |
sed -i 's/CceR0257/BondiSachsCceR0200/g' \
mv BondiSachsCceR0200.h5 ./CceExecutables/Tests/
mv CheckCceOutput.py ./CceExecutables/Tests/
mv CharacteristicExtractReduction_Expected.h5 \
./CceExecutables/Tests/
sed -i 's/CceR0257/Tests/BondiSachsCceR0200/g' \
./CceExecutables/CharacteristicExtract.yaml
sed -i 's/H5IsBondiData: False/H5IsBondiData: True/g' \
./CceExecutables/CharacteristicExtract.yaml
./CceExecutables/CharacteristicExtract \
--input-file ./CceExecutables/CharacteristicExtract.yaml
python ./CheckCceOutput.py
python ./CceExecutables/Tests/CheckCceOutput.py
rm CharacteristicExtractReduction.h5
- name: Create CCE executables release asset
# Note: We use xz compression since it's much better than gzip, even
# though it's a decent bit slower. Specifically, xz is two thirds the
# size of gzip.
run: |
mv BondiSachsCceR0200.h5 ./CceExecutables/
mv CharacteristicExtractReduction_Expected.h5 ./CceExecutables/
mv CheckCceOutput.py ./CceExecutables/
tar cJf CceExecutables.tar.xz CceExecutables
- name: Upload to release
uses: softprops/action-gh-release@v2
Expand Down
9 changes: 5 additions & 4 deletions docs/Tutorials/CCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ of the release (there may be a lot of text detailing what's been updated in this
release). Inside this tarball is

- the CCE executable `CharacteristicExtract`
- an example set of Bondi-Sachs worldtube data (see
[Input worldtube data formats](#input_worldtube_data_formats) section)
- an example YAML input file
- example output from CCE
- an example set of Bondi-Sachs worldtube data in the `Tests/` directory (see
[Input worldtube data formats](#input_worldtube_data_formats) section)
- example output from CCE in the `Tests/` directory
- a `ReduceCceWorldtube` executable and YAML file for converting between
[worldtube data formats](#input_worldtube_data_formats)
[worldtube data formats](#input_worldtube_data_formats) in the
`ReduceCceWorldtube/` diretory

\note The tarball is `.xz` so use `tar -xf TarName.tar.xz` to extract. The `-z`
flag to use gzip will cause an error.
Expand Down

0 comments on commit 0de17da

Please sign in to comment.