diff --git a/.github/workflows/DeployStaticExecutables.yaml b/.github/workflows/DeployStaticExecutables.yaml index 3e5ba5326a6f..2bcfba6a7a3e 100644 --- a/.github/workflows/DeployStaticExecutables.yaml +++ b/.github/workflows/DeployStaticExecutables.yaml @@ -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/ diff --git a/containers/Dockerfile.buildenv b/containers/Dockerfile.buildenv index 93bdcd9e7e67..2fbed649f086 100644 --- a/containers/Dockerfile.buildenv +++ b/containers/Dockerfile.buildenv @@ -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 diff --git a/docs/Tutorials/CCE.md b/docs/Tutorials/CCE.md index bb88003678b6..7ef5616ae6b1 100644 --- a/docs/Tutorials/CCE.md +++ b/docs/Tutorials/CCE.md @@ -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 @@ -199,6 +202,14 @@ supports \f$\ell\in[4, 32]\f$. \snippet Test_Spherepack.cpp spectre_cce_grid_point_locations +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,