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: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,23 +52,23 @@ You can navigate [to this webpage](https://mflowcode.github.io/documentation/md_
52
52
It's rather straightforward.
53
53
We'll give a brief intro. here for MacOS.
54
54
Using [brew](https://brew.sh), install MFC's modest set of dependencies:
55
-
```console
55
+
```shell
56
56
brew install wget python cmake gcc@13 mpich
57
57
```
58
58
You're now ready to build and test MFC!
59
59
Put it to a convenient directory via
60
-
```console
60
+
```shell
61
61
git clone https://github.com/mflowcode/MFC.git
62
62
cd MFC
63
63
```
64
64
and make sure MFC knows what compilers to use by putting the following in your `~/.profile`
65
-
```console
65
+
```shell
66
66
export CC=gcc-13
67
67
export CXX=g++-13
68
68
export FC=gfortran-13
69
69
```
70
70
and source that file, build, and test!
71
-
```console
71
+
```shell
72
72
source~/.profile
73
73
./mfc.sh build -j 8
74
74
./mfc.sh test -j 8
@@ -78,7 +78,7 @@ And... you're done!
78
78
You can learn more about MFC's capabilities [via its documentation](https://mflowcode.github.io/documentation/index.html) or play with the examples located in the `examples/` directory (some are [shown here](https://mflowcode.github.io/documentation/md_examples.html))!
79
79
80
80
The shock-droplet interaction case above was run via
81
-
```console
81
+
```shell
82
82
./mfc.sh run ./examples/3d_shockdroplet/case.py -n 8
83
83
```
84
84
where `8` is the number of cores the example will run on.
Then, in order to initialize your development environment, open a terminal window and run:
70
-
```console
70
+
```shell
71
71
"C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
72
72
```
73
73
@@ -92,14 +92,14 @@ You can now follow the appropriate instructions for your distribution.
92
92
93
93
-**If you use [ZSH]** (Verify with `echo $SHELL`)
94
94
95
-
```console
95
+
```shell
96
96
touch ~/.zshrc
97
97
open ~/.zshrc
98
98
```
99
99
100
100
-**If you use [BASH]** (Verify with `echo $SHELL`)
101
101
102
-
```console
102
+
```shell
103
103
touch ~/.bash_profile
104
104
open ~/.bash_profile
105
105
```
@@ -111,7 +111,7 @@ These lines ensure that LLVM's Clang, and Apple's modified version of GCC, won't
111
111
Further reading on `open-mpi` incompatibility with `clang`-based `gcc` on macOS: [here](https://stackoverflow.com/questions/27930481/how-to-build-openmpi-with-homebrew-and-gcc-4-9).
112
112
We do *not* support `clang` due to conflicts with the Silo dependency.
Copy file name to clipboardExpand all lines: docs/documentation/running.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Please refer to `./mfc.sh run -h` for a complete list of arguments and options,
32
32
33
33
To run all stages of MFC, that is [pre_process](https://github.com/MFlowCode/MFC/tree/master/src/pre_process/), [simulation](https://github.com/MFlowCode/MFC/tree/master/src/simulation/), and [post_process](https://github.com/MFlowCode/MFC/tree/master/src/post_process/) on the sample case [2D_shockbubble](https://github.com/MFlowCode/MFC/tree/master/examples/2D_shockbubble/),
34
34
35
-
```console
35
+
```shell
36
36
./mfc.sh run examples/2D_shockbubble/case.py
37
37
```
38
38
@@ -45,14 +45,14 @@ For example,
45
45
46
46
- Running [pre_process](https://github.com/MFlowCode/MFC/tree/master/src/pre_process/) with 2 cores:
47
47
48
-
```console
48
+
```shell
49
49
./mfc.sh run examples/2D_shockbubble/case.py -t pre_process -n 2
50
50
```
51
51
52
52
- Running [simulation](https://github.com/MFlowCode/MFC/tree/master/src/simulation/) and [post_process](https://github.com/MFlowCode/MFC/tree/master/src/post_process/)
53
53
using 4 cores:
54
54
55
-
```console
55
+
```shell
56
56
./mfc.sh run examples/2D_shockbubble/case.py -t simulation post_process -n 4
57
57
```
58
58
@@ -64,7 +64,7 @@ The number of nodes can be specified with the `-N` (i.e., `--nodes`) option.
64
64
65
65
We provide a list of (baked-in) submission batch scripts in the `toolchain/templates` folder.
@@ -167,14 +167,14 @@ in which $t_i$ is the starting time, $t_f$ is the final time, and $SF$ is the sa
167
167
- There are several ways to do this. Keep in mind that, regardless of the .py file used, the post_process command will generate output files in the [`t_step_start`, `t_step_stop`] range, with `t_step_save` as the spacing between files.
168
168
- One way is to set `t_step_stop` to the restarting point $t_s$ in `case.py`. Then, run the commands below. The first command will run on timesteps $[t_i, t_s]$. The second command will run on $[t_s, t_{f2}]$. Therefore, the whole range $[t_i, t_{f2}]$ will be post processed.
169
169
170
-
```console
170
+
```shell
171
171
./mfc.sh run case.py -t post_process
172
172
./mfc.sh run restart_case.py -t post_process
173
173
```
174
174
175
175
We have provided an example, `case.py` and `restart_case.py` in `/examples/1D_vacuum_restart/`. This simulation is a duplicate of the `1D_vacuum` case. It demonstrates stopping at timestep 7000, adding a new patch, and restarting the simulation. To test this code, run:
176
176
177
-
```console
177
+
```shell
178
178
./mfc.sh run examples/1D_vacuum_restart/case.py -t pre_process simulation
179
179
./mfc.sh run examples/1D_vacuum_restart/restart_case.py -t pre_process simulation
180
180
./mfc.sh run examples/1D_vacuum_restart/case.py -t post_process
@@ -185,7 +185,7 @@ We have provided an example, `case.py` and `restart_case.py` in `/examples/1D_va
185
185
186
186
- Oak Ridge National Laboratory's [Summit](https://www.olcf.ornl.gov/summit/):
187
187
188
-
```console
188
+
```shell
189
189
./mfc.sh run examples/2D_shockbubble/case.py -e batch \
0 commit comments