mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-25 12:35:15 -04:00
Add openPMD output
This commit is contained in:
parent
731b0ae562
commit
7c648bcc1f
21 changed files with 4258 additions and 245 deletions
|
|
@ -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