Skip to content

Commit 984a053

Browse files
committed
Add docs for running the src executables
1 parent abcf1b8 commit 984a053

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ project(
88
DESCRIPTION "Fortran tooling"
99
)
1010

11-
set(CMAKE_Fortran_FLAGS "-ffree-line-length-none")
11+
set(GFORTRANFLAGS "-ffree-line-length-none")
12+
set(CMAKE_Fortran_FLAGS "${GFORTRAN_FLAGS}") # Update this to match the flags for the chosen compiler
1213

1314
# Define src files
1415
set(PROJ_SRC_DIR "${PROJECT_SOURCE_DIR}/src")

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,17 @@ cd build
4444
make
4545
```
4646
This will produce executables for the two src codes, `fortran-tooling-mesh-generator` and `fortran-tooling-poisson`.
47+
48+
## Running the src
49+
50+
### Mesh generator
51+
52+
```sh
53+
./build/fortran-tooling-mesh-generator <box_size> <edge_size>
54+
```
55+
56+
### Poisson solver
57+
58+
```sh
59+
./build/fortran-tooling-poisson # then respond to prompt with the mesh name, likely to be `square_mesh`
60+
```

0 commit comments

Comments
 (0)