Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Dec 8, 2023
1 parent efda9d1 commit 97840e7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions apps/demo_app_with_plotting/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Compiled demo app
-----------------
To build:
Run julia in this folder:
```bash
cd BattMo.jl/apps/demo_app_with_plotting
julia --project=.
```
Add the demo app using `dev`:
```julia
]dev ./BattMoDemoApp
```
You can hit backspace to leave package mode and compile the executable:
```julia
include("create_executable.jl")
```
If a window appears during compilation you will have to close it for the compilation to continue once a plot has appeared. This will take some time, especially the first time you run it. It will create a folder named `battmo_compiled`. You can then run the following command in your terminal to simulate a test case:
```bash
./battmo_compiled/bin/BattMoDemoApp ./data/p2d_40_jl.json
```
You will then get output and a plot. The program terminates once the plot is closed. If you are using Windows the executable will be named `BattMoDemoApp.exe` and you will have to change the paths to use `\` instead of `/`.

0 comments on commit 97840e7

Please sign in to comment.