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

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

Arguments

vv

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

Dir

(character vector)- hold the directories for the versions of GMACS considered in the analysis.

.update

(logical)- Flag to specify if this is 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.

End_Devel

(logical)- Flag to specify if gmacs.tpl is written at the end of a development period. Used when updating Gmacs.

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.