Skip to content

Commit

Permalink
Merge pull request #6398 from knelli2/reduce_cce_combine_h5
Browse files Browse the repository at this point in the history
Update ReduceCceWorldtube with new features
  • Loading branch information
nilsdeppe authored Dec 14, 2024
2 parents d02214d + 2fad23b commit e7e48dc
Show file tree
Hide file tree
Showing 17 changed files with 1,498 additions and 535 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/DeployStaticExecutables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,26 @@ jobs:
- name: Copy CCE executables from the container
run: >
mkdir CceExecutables;
mkdir ./CceExecutables/ReduceCceWorldtube;
mkdir ./CceExecutables/PreprocessCceWorldtube;
mkdir ./CceExecutables/Tests;
cp ./tests/InputFiles/Cce/CharacteristicExtract.yaml
./CceExecutables/CharacteristicExtract.yaml
cp ./tests/InputFiles/ReduceCceWorldtube/ReduceCceWorldtube.yaml
./CceExecutables/ReduceCceWorldtube/ReduceCceWorldtube.yaml
cp
./tests/InputFiles/PreprocessCceWorldtube/PreprocessCceWorldtube.yaml
./CceExecutables/PreprocessCceWorldtube/PreprocessCceWorldtube.yaml
docker cp
static-execs:/work/spectre/build/bin/CharacteristicExtract
./CceExecutables/
docker cp static-execs:/work/spectre/build/bin/ReduceCceWorldtube
./CceExecutables/ReduceCceWorldtube/
docker cp static-execs:/work/spectre/build/bin/PreprocessCceWorldtube
./CceExecutables/PreprocessCceWorldtube/
docker cp
static-execs:/work/spectre/build/bin/WriteCceWorldtubeCoordsToFile
./CceExecutables/PreprocessCceWorldtube/
- name: Test CCE executable outside of container
run: |
mv BondiSachsCceR0200.h5 ./CceExecutables/Tests/
Expand Down
2 changes: 1 addition & 1 deletion cmake/AddInputFileTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,6 @@ configure_file(
# These paths should be relative to the input file directory passed to
# `add_input_file_tests`
set(INPUT_FILE_WHITELIST
"ReduceCceWorldtube/ReduceCceWorldtube.yaml")
"PreprocessCceWorldtube/PreprocessCceWorldtube.yaml")

add_input_file_tests("${CMAKE_SOURCE_DIR}/tests/InputFiles/" ${INPUT_FILE_WHITELIST})
3 changes: 2 additions & 1 deletion containers/Dockerfile.buildenv
Original file line number Diff line number Diff line change
Expand Up @@ -569,5 +569,6 @@ RUN if [ ${UBUNTU_VERSION} != 18.04 ] && [ "$TARGETARCH" != "amd64" ]; then \
-D BUILD_DOCS=OFF \
-D USE_CCACHE=OFF \
.. \
&& make ${PARALLEL_MAKE_ARG} CharacteristicExtract ReduceCceWorldtube \
&& make ${PARALLEL_MAKE_ARG} CharacteristicExtract PreprocessCceWorldtube \
WriteCceWorldtubeCoordsToFile \
&& ctest -LE unit -R CharacteristicExtract
295 changes: 184 additions & 111 deletions docs/Tutorials/CCE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Evolution/Systems/Cce/OptionTags.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ struct H5WorldtubeBoundaryDataManager : db::SimpleTag {
"\nDEPRECATION WARNING: Reading worldtube H5 files that are in the "
"Metric data format (i.e. cartesian components of the metric and "
"derivs expressed in modal coefficients) is deprecated. Convert your "
"data to the Bondi modal format using the 'ReduceCceWorldtube' "
"data to the Bondi modal format using the 'PreprocessCceWorldtube' "
"executable. See https://spectre-code.org/tutorial_cce.html for "
"details. Support for reading the Metric data format will be "
"dropped in January 2025.\n");
Expand Down
2 changes: 1 addition & 1 deletion src/Evolution/Systems/Cce/WorldtubeBufferUpdater.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class KleinGordonWorldtubeH5BufferUpdater;
/*!
* \brief Abstract base class for utilities that are able to perform the buffer
* updating procedure needed by the `WorldtubeDataManager` or by the
* `ReduceCceWorldtube` executable.
* `PreprocessCceWorldtube` executable.
*
* \details The methods that are required to be overridden in the derived
* classes are:
Expand Down
2 changes: 1 addition & 1 deletion src/Evolution/Systems/Cce/WorldtubeDataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ bool BondiWorldtubeDataManager::populate_hypersurface_boundary_data(
du_r / bondi_r;

// there's only a couple of tags desired by the core computation that aren't
// stored in the 'reduced' format, so we perform the remaining computation
// stored in the bondi format, so we perform the remaining computation
// in-line here.
const auto& du_bondi_j = get(get<Tags::BoundaryValue<Tags::Du<Tags::BondiJ>>>(
*boundary_data_variables));
Expand Down
2 changes: 1 addition & 1 deletion src/Evolution/Systems/Cce/WorldtubeDataManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class MetricWorldtubeDataManager
};

/*!
* \brief Manages the 'reduced' cached buffer dataset associated with a CCE
* \brief Manages the bondi cached buffer dataset associated with a CCE
* worldtube and interpolates to requested time points to provide worldtube
* boundary data to the main evolution routines.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Executables/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ add_subdirectory(ExportEquationOfStateForRotNS)
add_subdirectory(Examples)
add_subdirectory(ExportCoordinates)
add_subdirectory(ParallelInfo)
add_subdirectory(ReduceCceWorldtube)
add_subdirectory(PreprocessCceWorldtube)
add_subdirectory(TimeStepperSummary)
add_subdirectory(WriteCceWorldtubeCoordsToFile)
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Distributed under the MIT License.
# See LICENSE.txt for details.

set(EXECUTABLE ReduceCceWorldtube)
set(EXECUTABLE PreprocessCceWorldtube)

add_spectre_executable(
${EXECUTABLE}
EXCLUDE_FROM_ALL
ReduceCceWorldtube.cpp
PreprocessCceWorldtube.cpp
)

target_link_libraries(
Expand Down
Loading

0 comments on commit e7e48dc

Please sign in to comment.