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
3 changes: 0 additions & 3 deletions .JuliaFormatter.toml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: format-check

on:
push:
branches:
- 'master'
- 'main'
- 'release-'
tags: '*'
pull_request:

jobs:
runic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fredrikekre/runic-action@v1
with:
version: '1'
12 changes: 7 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using OrdinaryDiffEqOperatorSplitting
using Documenter, DocumenterCitations

DocMeta.setdocmeta!(OrdinaryDiffEqOperatorSplitting, :DocTestSetup,
:(using OrdinaryDiffEqOperatorSplitting); recursive = true)
DocMeta.setdocmeta!(
OrdinaryDiffEqOperatorSplitting, :DocTestSetup,
:(using OrdinaryDiffEqOperatorSplitting); recursive = true
)

const is_ci = haskey(ENV, "GITHUB_ACTIONS")

Expand All @@ -16,7 +18,7 @@ makedocs(
format = Documenter.HTML(
assets = [
"assets/citations.css",
# "assets/favicon.ico"
# "assets/favicon.ico"
],
# canonical = "https://localhost/",
collapselevel = 1
Expand All @@ -31,7 +33,7 @@ makedocs(
"Theory Manual" => "topics/time-integration.md",
"api-reference/index.md",
"devdocs/index.md",
"references.md"
"references.md",
],
plugins = [
bibtex_plugin,
Expand All @@ -45,6 +47,6 @@ deploydocs(
devbranch = "main",
versions = [
"stable" => "v^",
"dev" => "dev"
"dev" => "dev",
]
)
6 changes: 3 additions & 3 deletions src/function.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This type of function describes a set of connected inner functions in mass-matrix form, as usually found in operator splitting procedures.
"""
struct GenericSplitFunction{fSetType <: Tuple, idxSetType <: Tuple, sSetType <: Tuple} <:
AbstractOperatorSplitFunction
AbstractOperatorSplitFunction
# Tuple containing the atomic ode functions or further nested split functions.
functions::fSetType
# The ranges for the values in the solution vector.
Expand All @@ -14,7 +14,7 @@ struct GenericSplitFunction{fSetType <: Tuple, idxSetType <: Tuple, sSetType <:
synchronizers::sSetType
function GenericSplitFunction(fs::Tuple, drs::Tuple, syncers::Tuple)
@assert length(fs) == length(drs) == length(syncers)
new{typeof(fs), typeof(drs), typeof(syncers)}(fs, drs, syncers)
return new{typeof(fs), typeof(drs), typeof(syncers)}(fs, drs, syncers)
end
end

Expand All @@ -28,7 +28,7 @@ Indicator that no synchronization between parameters and solution vectors is nec
struct NoExternalSynchronization end

function GenericSplitFunction(fs::Tuple, drs::Tuple)
GenericSplitFunction(fs, drs, ntuple(_->NoExternalSynchronization(), length(fs)))
return GenericSplitFunction(fs, drs, ntuple(_ -> NoExternalSynchronization(), length(fs)))
end

@inline get_operator(f::GenericSplitFunction, i::Integer) = f.functions[i]
Expand Down
Loading
Loading