MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_compile_specific Module Reference

Platform-specific file and directory operations: create, delete, inquire, getcwd, and basename. More...

Functions/Subroutines

impure subroutine s_create_directory (dir_name)
 Creates a directory and all its parents if it does not exist.
impure subroutine s_delete_file (filepath)
 Deletes a file at the given path using a platform-specific system command.
impure subroutine s_delete_directory (dir_name)
 Recursively deletes a directory using a platform-specific system command.
impure subroutine my_inquire (fileloc, dircheck)
 Inquires on the existence of a directory.
impure subroutine s_get_cwd (cwd)
 Retrieves the current working directory path via the GETCWD intrinsic.
impure subroutine s_get_basename (dirpath, basename)
 Extracts the base filename from a directory path using the system basename command.

Detailed Description

Platform-specific file and directory operations: create, delete, inquire, getcwd, and basename.

Function/Subroutine Documentation

◆ my_inquire()

impure subroutine m_compile_specific::my_inquire ( character(len=*), intent(in) fileloc,
logical, intent(inout) dircheck )

Inquires on the existence of a directory.

Parameters
filelocFile directory location
dircheckSwitch that indicates if directory exists

Definition at line 55 of file m_compile_specific.f90.

Here is the caller graph for this function:

◆ s_create_directory()

impure subroutine m_compile_specific::s_create_directory ( character(len=*), intent(in) dir_name)

Creates a directory and all its parents if it does not exist.

Parameters
dir_nameDirectory path

Definition at line 17 of file m_compile_specific.f90.

Here is the caller graph for this function:

◆ s_delete_directory()

impure subroutine m_compile_specific::s_delete_directory ( character(len=*), intent(in) dir_name)

Recursively deletes a directory using a platform-specific system command.

Definition at line 41 of file m_compile_specific.f90.

Here is the caller graph for this function:

◆ s_delete_file()

impure subroutine m_compile_specific::s_delete_file ( character(len=*), intent(in) filepath)

Deletes a file at the given path using a platform-specific system command.

Definition at line 29 of file m_compile_specific.f90.

Here is the caller graph for this function:

◆ s_get_basename()

impure subroutine m_compile_specific::s_get_basename ( character(len=*), intent(in) dirpath,
character(len=*), intent(out) basename )

Extracts the base filename from a directory path using the system basename command.

Definition at line 75 of file m_compile_specific.f90.

Here is the call graph for this function:

◆ s_get_cwd()

impure subroutine m_compile_specific::s_get_cwd ( character(len=*), intent(out) cwd)

Retrieves the current working directory path via the GETCWD intrinsic.

Definition at line 68 of file m_compile_specific.f90.