Skip to content

Commit

Permalink
Add static exec for writing worldtube coords to file
Browse files Browse the repository at this point in the history
  • Loading branch information
knelli2 committed Dec 13, 2024
1 parent bf981c8 commit f962837
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/DeployStaticExecutables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ jobs:
docker cp static-execs:/work/spectre/build/bin/ReduceCceWorldtube
./CceExecutables/ReduceCceWorldtube/
docker cp
static-execs:/work/spectre/build/bin/WriteCceWorldtubeCoordsToFile
./CceExecutables/ReduceCceWorldtube/
- name: Test CCE executable outside of container
run: |
mv BondiSachsCceR0200.h5 ./CceExecutables/Tests/
Expand Down
1 change: 1 addition & 0 deletions containers/Dockerfile.buildenv
Original file line number Diff line number Diff line change
Expand Up @@ -570,4 +570,5 @@ RUN if [ ${UBUNTU_VERSION} != 18.04 ] && [ "$TARGETARCH" != "amd64" ]; then \
-D USE_CCACHE=OFF \
.. \
&& make ${PARALLEL_MAKE_ARG} CharacteristicExtract ReduceCceWorldtube \
WriteCceWorldtubeCoordsToFile \
&& ctest -LE unit -R CharacteristicExtract
11 changes: 11 additions & 0 deletions docs/Tutorials/CCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ release). Inside this tarball is
- a `ReduceCceWorldtube` executable and YAML file for converting between
[worldtube data formats](#input_worldtube_data_format) in the
`ReduceCceWorldtube/` diretory
- a `WriteCceWorldtubeCoordsToFile` executable that writes
[grid points on a sphere](#spherical_nodes) to a text file in the
`ReduceCceWorldtube/` directory
- a python script `CheckCceOutput.py` (meant to be run from the root of the
tarball and after you run the example YAML input file also in the root of the
tarball) that will check if the example output is correct
Expand Down Expand Up @@ -199,6 +202,14 @@ supports \f$\ell\in[4, 32]\f$.
\snippet Test_Spherepack.cpp spectre_cce_grid_point_locations
</details>

Alternatively, if your code can read in grid points from a text file, you can
run the `WriteCceWorldtubeCoordsToFile` executable like so to get a text file
with three columns for the x,y,z coordinates of each point.

```
./WriteCceWorldtubeCoordsToFile -r 200 -L 16 -o GridPointsR200.txt
```

Each dataset holds `1 + (l_max + 1) * (2 * l_max + 1)` columns, with the
first one being the `time`. The columns must be in \f$\theta\f$-varies-fastest
ordering. That is,
Expand Down

0 comments on commit f962837

Please sign in to comment.