Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .codespell-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fpt
Collet
Smoot
NWO
Te
Nd
10 changes: 10 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[codespell]
skip = .git,build,*.svg,*.png,*.jats
# Case-sensitive, so only these exact forms are exempt. A lowercase "collet"
# or "nd" in prose is still reported as a typo.
# fpt typedef in src/den2obj_math.h:26
# Collet Yann Collet, Zstandard author (paper/paper.bib:53)
# Smoot Michael E. Smoot, TCLAP author (paper/paper.bib:112)
# NWO Dutch Research Council (paper/paper.md:127)
# Te, Nd element symbols in src/periodic_table.cpp
ignore-words = .codespell-ignore
33 changes: 33 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: codespell

on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]

jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: codespell-project/actions-codespell@v2.4.3
with:
only_warn: 1
config: .codespellrc
ignore_words_file: .codespell-ignore

- name: Write codespell report
if: always()
run: |
pipx install codespell
codespell --config .codespellrc > codespell.txt 2>&1 || true
echo "--- findings: $(wc -l < codespell.txt)"
cat codespell.txt

- uses: actions/upload-artifact@v4
if: always()
with:
name: codespell-report
path: codespell.txt
2 changes: 1 addition & 1 deletion docs/background.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Thus the procedure is as follows:
3. All polygons are gathered to form the threedimensional isosurface.

It should be noted that this algorithm can be executed in a highly efficient
fashion using trivial parallellization as the result for each cube is
fashion using trivial parallelization as the result for each cube is
completely independent from all the other cubes. It turns out that the
generation of the scalar field, which by itself is also a highly
parallellizable step, is typically the most time-consuming.
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ more output::

.. note::

If the tests are continously failing for you, you are warmly invited
If the tests are continuously failing for you, you are warmly invited
to `open an issue on the Github page <https://github.com/ifilot/den2obj/issues>`_.
2 changes: 1 addition & 1 deletion src/den2obj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int main(int argc, char* argv[]) {
TCLAP::ValueArg<std::string> arg_generator("g","dataset","Dataset name",false,"","string");
cmd.add(arg_generator);

// select algorithm for either compression or for tesselation
// select algorithm for either compression or for tessellation
TCLAP::ValueArg<std::string> arg_algo("a","algo","Algorithm selection",false,"","string");
cmd.add(arg_algo);

Expand Down
10 changes: 5 additions & 5 deletions src/scalar_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void ScalarField::test_vasp5() {
*
* Read the scalar value from the 2nd line of the
* CHGCAR file. Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand Down Expand Up @@ -302,7 +302,7 @@ void ScalarField::read_scalar() {
* is automatically constructed.
*
* Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand Down Expand Up @@ -340,7 +340,7 @@ void ScalarField::read_matrix() {
* lines.
*
* Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand Down Expand Up @@ -416,7 +416,7 @@ void ScalarField::read_atom_positions() {
* direction.
*
* Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand Down Expand Up @@ -460,7 +460,7 @@ void ScalarField::read_grid_dimensions() {
* read_grid_dimensions() function.
*
* Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand Down
10 changes: 5 additions & 5 deletions src/scalar_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class ScalarField{
*
* Read the scalar value from the 2nd line of the
* CHGCAR file. Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand All @@ -278,7 +278,7 @@ class ScalarField{
* is automatically constructed.
*
* Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand All @@ -293,7 +293,7 @@ class ScalarField{
* direction.
*
* Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand All @@ -309,7 +309,7 @@ class ScalarField{
* lines.
*
* Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand All @@ -327,7 +327,7 @@ class ScalarField{
* read_grid_dimensions() function.
*
* Note that all read_* functions can
* be used seperately, although they may depend
* be used separately, although they may depend
* on each other and have to be used in some
* consecutive order as is done in the read()
* wrapper function.
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_file_creation.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* Test that verifies file creation (obj, stl and ply)
*
* Because the marching cubes algorithm uses OpenMP parallellization, we need
* Because the marching cubes algorithm uses OpenMP parallelization, we need
* to set the number of threads to 1 to obtain consistent results. With
* higher number of cores, the results are subject to race conditions, leading
* to different (although not incorrect) results.
Expand Down
Loading