In release mode, I get segmentation error.
$ make
Scanning dependencies of target step-40
[ 50%] Building CXX object CMakeFiles/step-40.dir/step-40.cc.o
[100%] Linking CXX executable step-40
[100%] Built target step-40
$ ./step-40
+---------------------------------------------+------------+------------+
| Total wallclock time elapsed since start | 64.6s | |
| | | |
| Section | no. calls | wall time | % of total |
+---------------------------------+-----------+------------+------------+
| load grid | 1 | 64.6s | 1e+02% |
+---------------------------------+-----------+------------+------------+
+---------------------------------------------+------------+------------+
| Total wallclock time elapsed since start | 6.34e-06s | |
| | | |
| Section | no. calls | wall time | % of total |
+---------------------------------+-----------+------------+------------+
+---------------------------------+-----------+------------+------------+
$ make release
Scanning dependencies of target release
[100%] Switching CMAKE_BUILD_TYPE to Release
-- Autopilot invoked
-- Run $ make info to print a detailed help message
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/praveen/Downloads/loading-test
***
*** Switched to Release mode. Now recompile with: $ make
***
[100%] Built target release
$ make
Scanning dependencies of target step-40
[ 50%] Building CXX object CMakeFiles/step-40.dir/step-40.cc.o
[100%] Linking CXX executable step-40
[100%] Built target step-40
$ ./step-40
Segmentation fault: 11