Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openPMD: add software name version #380

Merged

Conversation

s-sajid-ali
Copy link
Contributor

@s-sajid-ali s-sajid-ali commented Jun 9, 2023

Add software name and version as attributes to openPMD outputs.

@s-sajid-ali
Copy link
Contributor Author

Pinging @ax3l for review.

@ax3l ax3l self-assigned this Jun 12, 2023
@ax3l ax3l added the component: diagnostics all types of outputs label Jun 12, 2023
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 👍

Do you mind isolating the IDE-related changes and the I/O-related ones in two PRs? :)

CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated
Comment on lines 6 to 12
# generate compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# and place it in the source directory https://stackoverflow.com/a/60910583
add_custom_target(
copy-compile-commands ALL
${CMAKE_COMMAND} -E copy_if_different
${CMAKE_BINARY_DIR}/compile_commands.json ${CMAKE_CURRENT_LIST_DIR})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need the compile_commands.json?
Does your IDE not support CMake directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compile_commands.json is used by the C++ LSP (clangd) to parse the source files. Other build systems such as meson/bazel/etc can also generate it, so it not really CMake specific.

There are tools like Bear that can generate compile_commands.json, but generating it alongside the build reduces the number of tools needed.

	modified:   src/particles/elements/diagnostics/openPMD.cpp
@s-sajid-ali s-sajid-ali force-pushed the sajid/openpmd_software_name_version branch from aa8f87b to 12677f2 Compare June 12, 2023 22:16
@s-sajid-ali
Copy link
Contributor Author

Do you mind isolating the IDE-related changes and the I/O-related ones in two PRs? :)

Done: #381

Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Please note the updated spelling I introduced in the last commit :)

@ax3l ax3l enabled auto-merge (squash) June 16, 2023 03:09
@ax3l ax3l merged commit 11edb97 into ECP-WarpX:development Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: diagnostics all types of outputs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants