case_base_dir Function

public pure function case_base_dir(nml_path, override) result(dir)

The case directory used to anchor a namelist's relative file paths: the explicit override when supplied and non-empty (the OpenFOAM -case / GUI-supplied case dir), otherwise the namelist file's own directory. This is the single place the "override-or-namelist-dir" rule lives.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: nml_path
character(len=*), intent(in), optional :: override

Return Value character(len=:), allocatable