-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
1,652 additions
and
970 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Blank issue | ||
about: Ask us a question | ||
labels: [question] | ||
--- | ||
|
||
Are you here because you have something to report that is neither a bug, a new feature, nor an installation problem? | ||
|
||
Before opening this issue, consider opening a [discussion](https://github.com/ECP-WarpX/WarpX/discussions) instead! | ||
|
||
Issues are used to report bugs, installation problems or to request new features. | ||
Discussions are used to ask more open-ended questions, brainstorm, ask our feedback, etc. | ||
|
||
You can find more details on how to use issues and discussions [here](https://github.com/ECP-WarpX/WarpX/blob/development/CONTRIBUTING.rst). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
blank_issues_enabled: true | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## This file should be placed in the root directory of your project. | ||
## Then modify the CMakeLists.txt file in the root directory of your | ||
## project to incorporate the testing dashboard. | ||
## | ||
## # The following are required to submit to the CDash dashboard: | ||
## ENABLE_TESTING() | ||
## INCLUDE(CTest) | ||
|
||
set(CTEST_PROJECT_NAME WarpX) | ||
set(CTEST_NIGHTLY_START_TIME 08:00:00 UTC) | ||
|
||
set(CTEST_SUBMIT_URL https://my.cdash.org/submit.php?project=WarpX) | ||
|
||
set(CTEST_DROP_SITE_CDASH TRUE) | ||
|
||
# Additional settings | ||
set(CTEST_SITE "Azure-Pipelines") | ||
set(CTEST_BUILD_NAME "CI-Development") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Docs/source/developers/local_compile.rst → ...rce/developers/how_to_compile_locally.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _development-howtoguides: | ||
|
||
How-To Guides | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
how_to_profile | ||
how_to_test | ||
how_to_run_clang_tidy | ||
how_to_compile_locally | ||
how_to_write_the_docs |
4 changes: 2 additions & 2 deletions
4
Docs/source/developers/profiling.rst → Docs/source/developers/how_to_profile.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.. _developers-run_clang_tidy_locally: | ||
|
||
How to run the clang-tidy linter | ||
================================ | ||
|
||
WarpX's CI tests include several checks performed with the `clang-tidy <https://clang.llvm.org/extra/clang-tidy/>`__ linter. | ||
The complete list of checks performed is defined in the ``.clang-tidy`` configuration file. | ||
|
||
.. dropdown:: clang-tidy configuration file | ||
:color: light | ||
:icon: info | ||
:animate: fade-in-slide-down | ||
|
||
.. literalinclude:: ../../../.clang-tidy | ||
:language: yaml | ||
|
||
Under `Tools/Linter <https://github.com/ECP-WarpX/WarpX/blob/development/Tools/Linter>`__, the script ``runClangTidy.sh`` can be used to run the clang-tidy linter locally. | ||
|
||
.. dropdown:: clang-tidy local run script | ||
:color: light | ||
:icon: info | ||
:animate: fade-in-slide-down | ||
|
||
.. literalinclude:: ../../../Tools/Linter/runClangTidy.sh | ||
:language: bash | ||
|
||
It is a prerequisite that WarpX is compiled following the instructions that you find in our :ref:`Users <install-cmake>` or :ref:`Developers <building-cmake>` sections. | ||
|
||
The script generates a wrapper to ensure that clang-tidy is only applied to WarpX source files and compiles WarpX in 1D, 2D, 3D, and RZ geometry, using such wrapper. | ||
|
||
By default WarpX is compiled in single precision with PSATD solver, QED module, QED table generator and embedded boundary in order to ensure broader coverage with the clang-tidy tool. | ||
|
||
Few optional environment variables can be set to tune the behavior of the script: | ||
|
||
* ``WARPX_TOOLS_LINTER_PARALLEL``: set the number of cores used for compilation; | ||
|
||
* ``CLANG``, ``CLANGXX``, and ``CLANGTIDY``: set the version of the compiler and the linter. | ||
|
||
For continuous integration we currently use clang version 15.0.0 and it is recommended to use this version locally as well. | ||
A newer version may find issues not currently covered by CI tests (checks are opt-in), while older versions may not find all the issues. | ||
|
||
Here's an example of how to run the script after setting the appropriate environment variables: | ||
|
||
.. code-block:: bash | ||
export WARPX_TOOLS_LINTER_PARALLEL=12 | ||
export CLANG=clang-15 | ||
export CLANGXX=clang++-15 | ||
export CLANGTIDY=clang-tidy-15 | ||
./Tools/Linter/runClangTidy.sh |
Oops, something went wrong.