You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: julia/MOLE.jl/README.md
+65-9Lines changed: 65 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,27 +10,83 @@ MOLE.jl is not yet available in the Julia's package manager. For now, this repos
10
10
11
11
## Using MOLE.jl
12
12
13
-
In order to use the MOLE.jl library, first navigate to the location where the repository has been cloned to. Then, go to the ```mole/julia/MOLE.jl``` sub-directory. From here, you can access the library via the REPL or the command line.
13
+
In order to use the MOLE.jl library, first navigate to the location where the repository has been cloned to. Then, go to the `mole/julia/MOLE.jl` sub-directory. From here, you can access the library via the REPL or the command line.
14
14
15
15
### From the REPL
16
16
17
-
In ```mole/julia/MOLE.jl```, start Julia using the command ```julia --project=.```. Next, the package library needs to be instantiated and pre-compiled. Enter the ```pkg``` mode by pressing ```]```, then type the commands ```instantiate``` and ```precompile``` (one at a time). This should activate the MOLE.jl package and install the necessary dependencies.
17
+
In `mole/julia/MOLE.jl`, start Julia using the command `julia --project=.`. Next, the package library needs to be instantiated and pre-compiled. Enter the `pkg` mode by pressing `]`, then type the commands `instantiate` and `precompile` (one at a time). This should activate the MOLE.jl package and install the necessary dependencies.
18
18
19
19
Then, to run a script such as myScript.jl, you can use the following command in the REPL:
20
-
> ```include("path/to/myScript.jl")```
20
+
21
+
```julia
22
+
include("path/to/myScript.jl")
23
+
```
21
24
22
25
### From the command line
23
26
24
-
In ```mole/julia/MOLE.jl```, use the following commands to instatiate and precompile the MOLE package:
27
+
In `mole/julia/MOLE.jl`, use the following commands to instatiate and precompile the MOLE package:
julia --project=. -e 'using Pkg; Pkg.precompile()'
35
+
```
29
36
30
-
Then, to run a script such as myScript.jl, use the command
37
+
Then, to run a script such as `myScript.jl`, use the command
31
38
32
-
> ```julia --project=. path/to/myScript.jl```
39
+
```sh
40
+
julia --project=. path/to/myScript.jl
41
+
```
33
42
34
43
## Running the test suite
35
44
36
-
To run the unit tests, first enter the Julia REPL as in the above section (that is, by running the command ```julia --project=.``` from the directory ```mole/julia/MOLE.jl```). Next, enter the ```pkg``` mode by pressing ```]```, then type the command ```test```. The results of the unit tests should be displayed to your console.
45
+
To run the unit tests, first enter the Julia REPL as in the above section (that is, by running the command `julia --project=.` from the directory `mole/julia/MOLE.jl`). Next, enter the `pkg` mode by pressing `]`, then type the command `test`. The results of the unit tests should be displayed to your console.
46
+
47
+
## Building the documentation
48
+
MOLE.jl uses [Documenter.jl](https://documenter.juliadocs.org/stable/) to build its Julia implementation documentation. From the `mole/julia/MOLE.jl` directory, navigate to the `docs/` directory, with
49
+
50
+
```sh
51
+
cd docs/
52
+
```
53
+
54
+
### From the REPL
55
+
56
+
To build the documentation from the `docs/` directory, start Julia with the command `julia --project=.`. You should see the Julia REPL starting with the `(docs)` environment. Next, enter the `pkg` mode by pressing `]`, and then type the commands `instantiate` and `precompile` (one at a time). This should activate the `docs` environment (specific to build the documentation) and install the necessary dependencies.
57
+
58
+
Then, to build the documentation you can use the following command in the REPL:
59
+
60
+
```julia
61
+
include("make.jl")
62
+
```
63
+
64
+
### From the command line
65
+
To build the documentation from the `docs/` directory, use the following commands to instatiate and precompile the documentation environment:
66
+
67
+
```sh
68
+
julia --project=. -e 'using Pkg; Pkg.instantiate()'
69
+
```
70
+
71
+
```sh
72
+
julia --project=. -e 'using Pkg; Pkg.precompile()'
73
+
```
74
+
75
+
Then build the documentation with the command
76
+
77
+
```sh
78
+
julia --project=. make.jl
79
+
```
80
+
81
+
### Preview the documentation
82
+
Once you have built the documentation (either from the REPL or the command line), you can inspect the documentation in `docs/build` with the `index.html` file as the homepage.
83
+
84
+
## Examples
85
+
86
+
The MOLE library contains examples demonstrating how to use the operators, in a broad range of partial differential equations (PDEs). More information on the mathematical content can be found in the [main MOLE documentation](https://mole-docs.readthedocs.io/en/main/examples/index.html).
87
+
88
+
Currently, the following examples are available in the MOLE Julia package.
89
+
90
+
- Elliptic Problems
91
+
- 1D Examples
92
+
- `elliptic1D`: A script that solves the 1D Poisson's equation with Robin boundary conditions using mimetic operators.
Copy file name to clipboardExpand all lines: julia/MOLE.jl/docs/src/index.md
+55-9Lines changed: 55 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,30 +10,76 @@ MOLE.jl is not yet available in the Julia's package manager. For now, this repos
10
10
11
11
## Using MOLE.jl
12
12
13
-
In order to use the MOLE.jl library, first navigate to the location where the repository has been cloned to. Then, go to the ```mole/julia/MOLE.jl``` sub-directory. From here, you can access the library via the REPL or the command line.
13
+
In order to use the MOLE.jl library, first navigate to the location where the repository has been cloned to. Then, go to the `mole/julia/MOLE.jl` sub-directory. From here, you can access the library via the REPL or the command line.
14
14
15
15
### From the REPL
16
16
17
-
In ```mole/julia/MOLE.jl```, start Julia using the command ```julia --project=.```. Next, the package library needs to be instantiated and pre-compiled. Enter the ```pkg``` mode by pressing ```]```, then type the commands ```instantiate``` and ```precompile``` (one at a time). This should activate the MOLE.jl package and install the necessary dependencies.
17
+
In `mole/julia/MOLE.jl`, start Julia using the command `julia --project=.`. Next, the package library needs to be instantiated and pre-compiled. Enter the `pkg` mode by pressing `]`, then type the commands `instantiate` and `precompile` (one at a time). This should activate the MOLE.jl package and install the necessary dependencies.
18
18
19
19
Then, to run a script such as myScript.jl, you can use the following command in the REPL:
20
-
> ```include("path/to/myScript.jl")```
20
+
21
+
```julia
22
+
include("path/to/myScript.jl")
23
+
```
21
24
22
25
### From the command line
23
26
24
-
In ```mole/julia/MOLE.jl```, use the following commands to instatiate and precompile the MOLE package:
27
+
In `mole/julia/MOLE.jl`, use the following commands to instatiate and precompile the MOLE package:
julia --project=. -e 'using Pkg; Pkg.precompile()'
35
+
```
29
36
30
-
Then, to run a script such as myScript.jl, use the command
37
+
Then, to run a script such as `myScript.jl`, use the command
31
38
32
-
> ```julia --project=. path/to/myScript.jl```
39
+
```sh
40
+
julia --project=. path/to/myScript.jl
41
+
```
33
42
34
43
## Running the test suite
35
44
36
-
To run the unit tests, first enter the Julia REPL as in the above section (that is, by running the command ```julia --project=.``` from the directory ```mole/julia/MOLE.jl```). Next, enter the ```pkg``` mode by pressing ```]```, then type the command ```test```. The results of the unit tests should be displayed to your console.
45
+
To run the unit tests, first enter the Julia REPL as in the above section (that is, by running the command `julia --project=.` from the directory `mole/julia/MOLE.jl`). Next, enter the `pkg` mode by pressing `]`, then type the command `test`. The results of the unit tests should be displayed to your console.
46
+
47
+
## Building the documentation
48
+
MOLE.jl uses [Documenter.jl](https://documenter.juliadocs.org/stable/) to build its Julia implementation documentation. From the `mole/julia/MOLE.jl` directory, navigate to the `docs/` directory, with
49
+
50
+
```sh
51
+
cd docs/
52
+
```
53
+
54
+
### From the REPL
55
+
56
+
To build the documentation from the `docs/` directory, start Julia with the command `julia --project=.`. You should see the Julia REPL starting with the `(docs)` environment. Next, enter the `pkg` mode by pressing `]`, and then type the commands `instantiate` and `precompile` (one at a time). This should activate the `docs` environment (specific to build the documentation) and install the necessary dependencies.
57
+
58
+
Then, to build the documentation you can use the following command in the REPL:
59
+
60
+
```julia
61
+
include("make.jl")
62
+
```
63
+
64
+
### From the command line
65
+
To build the documentation from the `docs/` directory, use the following commands to instatiate and precompile the documentation environment:
66
+
67
+
```sh
68
+
julia --project=. -e 'using Pkg; Pkg.instantiate()'
69
+
```
70
+
71
+
```sh
72
+
julia --project=. -e 'using Pkg; Pkg.precompile()'
73
+
```
74
+
75
+
Then build the documentation with the command
76
+
77
+
```sh
78
+
julia --project=. make.jl
79
+
```
80
+
81
+
### Preview the documentation
82
+
Once you have built the documentation (either from the REPL or the command line), you can inspect the documentation in `docs/build` with the `index.html` file as the homepage.
0 commit comments