Skip to content

Commit

Permalink
Add format
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyuxie committed Oct 17, 2024
1 parent d9c03f5 commit 1352147
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/Format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Format suggestions
on:
pull_request:
# this argument is not required if you don't use the `suggestion-label` input
types: [opened, reopened, synchronize, labeled, unlabeled]
jobs:
code-style:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/julia-format@v3
with:
version: "1" # Set `version` to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54 (default: '1')
suggestion-label: "format-suggest" # leave this unset or empty to show suggestions for all PRs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ plot!([-2.22, -2.22], [-4, -22], arrow = false, color = :black, linewidth = 2, l

plot!(Shape([(-0.05, -2), (2.6, -2), (2.6, -4), (-0.05, -4)]), linecolor = "black",
fillcolor = "white", label = false, linewidth = 2)
annotate!(1.27, -3, ("digest_boundary_conditions(boundary_conditions,
mesh, solver, cache)", 10, :black, :center))
annotate!(1.27, -3,
("digest_boundary_conditions(boundary_conditions,
mesh, solver, cache)", 10, :black, :center))
annotate!(2.6, -5, ("if necessary, converts passed boundary_conditions
into a suitable form for processing by Trixi.jl", 9, :black, :right))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ plot!(Shape([(0.1, -4.5), (2.5, -4.5), (2.5, -6.5), (0.1, -6.5)]), linecolor = "
fillcolor = "white", label = false, linewidth = 2)
annotate!(0.15, -5.5, ("allocate_coefficients(mesh, equations, solver,
cache)", 10, :black, :left))
annotate!(0.1, -8, ("initializes u_ode as a 1D zero-vector with a length
annotate!(0.1, -8,
("initializes u_ode as a 1D zero-vector with a length
depending on the number of variables, nodes,
dimensions of mesh and elements, this vector is used
by OrdinaryDiffEq.jl to keep a solution", 9, :black, :left))
Expand Down

0 comments on commit 1352147

Please sign in to comment.