rmti_find: Find paths to executables

Description Usage Arguments Details Value

View source: R/execute.R

Description

This function tries to locate external code executables.

Usage

1
rmti_find(code = "usgs", bits = "single", form = "b")

Arguments

code

Name of the MT3D variant to use, or path to the executable.

bits

Character. Can be "single" (ie. 32 bits) or "double" (i.e. 64 bits). Specifies if 32 or 64 bit executable are used for the MT3D-USGS executable.

form

Character. Can be 's' or 'b' (default). Specifies which MT3DMS executable is used, which depends on the value of FORM in the 'filespec.inc' file during compilation. The default 'b' (for binary) should work with FTL files generated by MODFLOW-2000 and newer versions. A value of 's' (for unformatted) should work with FTL files generated by MODFLOW-88 or 96.

Details

It first looks for the executable in the current working directory. If not there, it looks in the bin subfolder of 'getOption("RMT3DMS.path")', where the software might have been installed by [rmt_install()]. If the executable cannot be found, a final attempt is made by checking the system path variable. If it still cannot be located, an error is thrown.

Value

Path to the executable.


rogiersbart/RMT3DMS documentation built on Oct. 16, 2021, 9:45 a.m.