mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 13:45:19 -04:00
Add openPMD output
This commit is contained in:
parent
731b0ae562
commit
7c648bcc1f
21 changed files with 4258 additions and 245 deletions
|
|
@ -76,6 +76,8 @@ FLAG_EXCEPTIONS = (
|
|||
r"__LIBXSMM2",
|
||||
r"CPVERSION",
|
||||
r"_WIN32",
|
||||
r"OPENPMDAPI_VERSION_GE",
|
||||
r"openPMD_HAVE_MPI",
|
||||
# TODO: Add CMake support for the following flags or remove the corresponding code.
|
||||
# See also https://github.com/cp2k/cp2k/issues/4611
|
||||
r"__PW_FPGA",
|
||||
|
|
|
|||
|
|
@ -225,11 +225,12 @@ def process_file(fn: str, allow_modifications: bool) -> None:
|
|||
run_remote_tool("clangformat", fn)
|
||||
|
||||
if re.match(r".*\.(cc|cpp|cxx|hcc|hpp|hxx)$", fn):
|
||||
if fn.endswith("/torch_c_api.cpp"):
|
||||
# Begrudgingly tolerated because PyTorch has no C API.
|
||||
run_remote_tool("clangformat", fn)
|
||||
elif fn.endswith("/ace_c_api.cpp"):
|
||||
# same as PyTorch
|
||||
if (
|
||||
fn.endswith("/torch_c_api.cpp")
|
||||
or fn.endswith("/ace_c_api.cpp")
|
||||
or fn.endswith("/openPMD.cpp")
|
||||
):
|
||||
# Begrudgingly tolerated because PyTorch/Ace/openPMD have no C API.
|
||||
run_remote_tool("clangformat", fn)
|
||||
else:
|
||||
raise Exception(f"C++ is not supported.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue