Compiles the LPJmL source code and creates an executable by executing "make all" on the operating system shell.
make_lpjml(
model_path = ".",
parallel_cores = NULL,
make_clean = FALSE,
raise_error = TRUE,
debug = NULL
)Character string providing the path to LPJmL
(equal to LPJROOT environment variable). Defaults sto ".".
Numeric defining the number of available CPU cores for parallelization.
Logical. If set to TRUE, calls "make clean" first to
remove previous installation. Defaults to FALSE.
Logical. Whether to raise an error if sub-process has
non-zero exit status, hence if compilation fails. Defaults to TRUE.
NULL or Logical. Whether to compile LPJmL with "-debug" flag.
Defaults to NULL. If set to FALSE or TRUE, make_clean is set
automatically and compilation configuration is reset with/without "-debug".
Also the "configure.sh" file is rewritten.
A list with process status, see run.
if (FALSE) {
model_path <- "./LPJmL_internal"
make_lpjml(model_path = model_path)
}