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
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,20 @@ To generate the documentation using [FORD](https://github.com/Fortran-FOSS-Progr
67
67
ford numdiff.md
68
68
```
69
69
70
+
By default, the library is built with double precision (`real64`) real values. Explicitly specifying the real kind can be done using the following processor flags:
71
+
72
+
Preprocessor flag | Kind | Number of bytes
73
+
----------------- | ----- | ---------------
74
+
`REAL32` | `real(kind=real32)` | 4
75
+
`REAL64` | `real(kind=real64)` | 8
76
+
`REAL128` | `real(kind=real128)` | 16
77
+
78
+
For example, to build a single precision version of the library, use:
79
+
80
+
```
81
+
fpm build --profile release --flag "-DREAL32"
82
+
```
83
+
70
84
## Documentation
71
85
72
86
The latest API documentation can be found [here](https://jacobwilliams.github.io/NumDiff/). This was generated from the source code using [FORD](https://github.com/Fortran-FOSS-Programmers/ford) (note that the included `build.sh` script will also generate these files).
0 commit comments