Skip to content

Commit

Permalink
fix compute_linear_structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Aug 23, 2020
1 parent e8a2678 commit e814a06
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Trixi"
uuid = "a7f1ee26-1774-49b1-8366-f1abc58fbfcb"
authors = ["Michael Schlottke-Lakemper <[email protected]>", "Gregor Gassner <[email protected]>", "Hendrik Ranocha <[email protected]>", "Andrew R. Winters <[email protected]>"]
version = "0.1.1"
version = "0.1.2"

[deps]
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
Expand Down
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Trixi.jl

[![Docs-stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://trixi-framework.github.io/Trixi.jl/stable)
[![Docs-dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://trixi-framework.github.io/Trixi.jl/dev)
[![Build Linux & macOS](https://travis-ci.com/trixi-framework/Trixi.jl.svg?branch=master)](https://travis-ci.com/trixi-framework/Trixi.jl)
[![Build Windows](https://ci.appveyor.com/api/projects/status/uu0xds4hyc1i10n8/branch/master?svg=true)](https://ci.appveyor.com/project/ranocha/trixi-jl/branch/master)
[![Codecov](https://codecov.io/gh/trixi-framework/Trixi.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/trixi-framework/Trixi.jl)
[![Coveralls](https://coveralls.io/repos/github/trixi-framework/Trixi.jl/badge.svg?branch=master)](https://coveralls.io/github/trixi-framework/Trixi.jl?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-success.svg)](https://opensource.org/licenses/MIT)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3996439.svg)](https://doi.org/10.5281/zenodo.3996439)
[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/trixi-framework/Trixi.jl/v0.1.1.svg?style=social&logo=github)](https://github.com/trixi-framework/Trixi.jl)
[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/trixi-framework/Trixi.jl/v0.1.2.svg?style=social&logo=github)](https://github.com/trixi-framework/Trixi.jl)

<!-- [![Docs-stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://trixi-framework.github.io/Trixi.jl/stable) -->



Expand All @@ -36,15 +36,26 @@ You can then install Trixi, the postprocessing tools, and the respective depende
performing the following steps:

1. Clone the repository:
```
```bash
git clone [email protected]:trixi-framework/Trixi.jl.git
```
2. Enter the cloned directory and run the following command to install all
required dependencies:
```
```bash
julia utils/install.jl
```

Trixi is also a registered Julia package. Hence, you can also install Trixi via
```julia
julia> import Pkg
julia> Pkg.add("Trixi")
```
If you do this and want to modify Trixi, you can run
```julia
julia> Pkg.dev("Trixi") # get a clone of the git repository, usually in ~/.julia/dev/Trixi
```


## Usage
Enter the root directory `Trixi.jl/` and execute
Expand Down
1 change: 1 addition & 0 deletions src/run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ function compute_linear_structure(parameters_file=nothing, source_terms=nothing;
# Read command line or keyword arguments and parse parameters file
init_parameters(parameters_file; verbose=verbose, args=args,
refinement_level_increment=refinement_level_increment, parameters...)
globals[:euler_gravity] = false
mesh, solver, time_parameters = init_simulation()

equations(solver) isa Union{LinearScalarAdvectionEquation, HyperbolicDiffusionEquations} ||
Expand Down
6 changes: 6 additions & 0 deletions test/test_elixirs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ const EXAMPLES_DIR = joinpath(pathof(Trixi) |> dirname |> dirname, "examples")
initial_refinement_level=2)
λ = eigvals(Matrix(A))
@test maximum(real, λ) < length(λ) * eps(real(eltype(λ)))

A, b = Trixi.compute_linear_structure(joinpath(EXAMPLES_DIR, "parameters_hyp_diff_llf.toml"),
Trixi.source_terms_harmonic,
initial_refinement_level=2)
λ = eigvals(Matrix(A))
@test maximum(real, λ) < 10*length(λ) * eps(real(eltype(λ)))
end
end

Expand Down

2 comments on commit e814a06

@ranocha
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/20040

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.2 -m "<description of version>" e814a06be4181e7e633e03c559051c7c0aefa0e9
git push origin v0.1.2

Please sign in to comment.