Function to write the gmacs.TPL file from gmacsbase.tpl and personnal.tpl.

write_TPL(vv = NULL, Dir = NULL, .update = NULL)

Arguments

vv

Numeric: indicate the version - loop on the length(Dir).

Dir

list of Character string: hold the directories for the versions of GMACS considered in the analysis.

.update

Logical: is it to update a new version of GMACS? If TRUE, the name of the new version of GMACS and the date of the compilation will be modified in the gmacsbase.tpl file.

Value

a new gmacs.tpl file corresponding to the merging of gmacsbase.tpl and personnal.tpl files. This gmacs.tpl will then be used to build the GMACS executable.