File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -66,24 +66,24 @@ Alternatively, you can build using provided Makefiles:
66
66
make -f Makefile.manual
67
67
```
68
68
69
- ## Memory issues during compilation
69
+ ## Limiting the maximum rank of generated procedures
70
70
71
- Some issues can be encountered during compilation on low RAM computers.
72
- These issues are due to the high number of procedures generated by the preprocessor.
73
- They can be avoided by limiting the maximum rank of generated procedures, as follows with ` CMake ` :
71
+ Stdlib's preprocessor (fypp) by default generates specific procedures for arrays of all ranks, up to rank 15.
72
+ This can result in long compilation times and, on some computers, exceeding available memory.
73
+ If you know that you won't need all 15 ranks, you can specify the maximum rank for which the specific procedures will be generated.
74
+ For example, with CMake:
74
75
75
76
``` sh
76
77
cmake -B build -DCMAKE_MAXIMUM_RANK=4
77
-
78
78
cmake --build build
79
-
80
- cmake --build build --target test
79
+ cmake --build build --target test
81
80
```
82
81
or as follows with ` make ` :
83
82
84
83
``` sh
85
84
make -f Makefile.manual FYPPFLAGS=-DMAXRANK=4
86
85
```
86
+ Note that currently the minimum value for maximum rank is 4.
87
87
88
88
## Documentation
89
89
You can’t perform that action at this time.
0 commit comments