Skip to content

Commit

Permalink
Merge 01d3658 into e13dbb3
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Feb 6, 2024
2 parents e13dbb3 + 01d3658 commit 0a83d4b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spell Check

on: [pull_request, workflow_dispatch]

jobs:
typos-check:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@v1.18.0
2 changes: 1 addition & 1 deletion docs/src/Trixi.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ solver = DGSEM(polydeg=3, surface_flux=(flux_hll, flux_nonconservative_fjordholm
After the solver comes the specification of the mesh in the approximation.
In this case, a [`TreeMesh`](https://trixi-framework.github.io/Trixi.jl/stable/meshes/tree_mesh/) is chosen, which is a Cartesian mesh.
Here the domain borders must be defined, as well as the number of initial elements
($2$ to the power of `inital_refinement_level`).
($2$ to the power of `initial_refinement_level`).
Also, we have to indicate if the domain is periodic.
In this example, boundary conditions were defined. Thus the periodicity is set to `false`.

Expand Down
4 changes: 2 additions & 2 deletions src/TrixiBottomTopography.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module TrixiBottomTopography
using LinearAlgebra: norm, diagm, Tridiagonal, SymTridiagonal
using SparseArrays: sparse, spzeros

# Include one dimesnional B-spline interpolation
# Include one dimensional B-spline interpolation
include("1D/spline_cache_1D.jl")
include("1D/spline_methods_1D.jl")
include("1D/spline_utils_1D.jl")

# Include two dimesnional B-spline interpolation
# Include two dimensional B-spline interpolation
include("2D/spline_cache_2D.jl")
include("2D/spline_methods_2D.jl")
include("2D/spline_utils_2D.jl")
Expand Down
10 changes: 5 additions & 5 deletions src/auxiliary/convert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ data files into one dimensional readable files.
Inputs:
- `path_read`: String of the path of the DGM data which should be converted
- `path_write`: String of the path where the new file shuold be saved.
- `path_write`: String of the path where the new file should be saved.
(Needs to also include the name of the file)
- `excerpt`: Optional integer that specifies a stride through of the data that will be extracted. E.g.
if excerpt is set to 10, only every 10th `x` and `y` value are considered with their
corresponsing `z` values. The default value is 1 which means that every value is taken.
corresponding `z` values. The default value is 1 which means that every value is taken.
- `direction`: Optional String that specifies if the one dimensional data should be read from the
`x` or `y` direction. By default this is set to the `x` direction.
- `section`: Optional interger which can be between 1 and 1000 and specifies which section of the
- `section`: Optional integer which can be between 1 and 1000 and specifies which section of the
other dimension should be chosen. By default this values is set to 1 which means
that if direction is set to `x`, the corresponding `z` values are taken with respect to the
first `y` value.
Expand Down Expand Up @@ -123,11 +123,11 @@ data files into two dimensional readable files.
Inputs:
- `path_read`: String of the path of the DGM data which should be converted
- `path_write`: String of the path where the new file shuold be saved.
- `path_write`: String of the path where the new file should be saved.
(Needs to also include the name of the file)
- `excerpt`: Optional integer that specifies a stride through of the data that will be extracted. E.g.
if excerpt is set to 10, only every 10th `x` and `y` value are considered with their
corresponsing `z` values. The default value is 1 which means that every value is taken.
corresponding `z` values. The default value is 1 which means that every value is taken.
"""
function convert_dgm_2d(path_read::String, path_write::String; excerpt = 1)

Expand Down

0 comments on commit 0a83d4b

Please sign in to comment.