...
d) Create make files and dependencies
cmake -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${abs_dir}/work ${abs_dir}/project
...
The key '-j4' makes the command use 4 cores in parallel. But you can also run it on one core only with:
make work
4) Modify source code
a) You can find the GEM routines under .../gem/src/*/* :
Most dynamic routines are under:
.../gem/src/gemdyn/base
Most physics routines are under:
.../gem/src/rpnphy/base
Most surface routines are under:
.../gem/src/rpnphy/surface
b) Recreate the executable
Make sure you are in the 'build' directory!
Only if you add any new routines or add include files or module "use" lines to an existing routine you first need to recreate the dependencies and make files by re-executing the cmake command under point 4d) again.
Otherwise it is enough to just re-execute:
make -j4 work
5) Use your executable
To use your own executable set 'GEM_ovbin' in your 'configexp.cfg' to the path of your executable directory, up until but excluding the 'gem' directory. For example:
...