MOM6
mom_file_parser::log_version Interface Reference

Detailed Description

An overloaded interface to log version information about modules.

Definition at line 109 of file MOM_file_parser.F90.

Private functions

subroutine log_version_cs (CS, modulename, version, desc)
 Log the version of a module to a log file and/or stdout, and/or to the parameter documentation file. More...
 
subroutine log_version_plain (modulename, version)
 Log the version of a module to a log file and/or stdout. More...
 

Functions and subroutines

◆ log_version_cs()

subroutine mom_file_parser::log_version::log_version_cs ( type(param_file_type), intent(in)  CS,
character(len=*), intent(in)  modulename,
character(len=*), intent(in)  version,
character(len=*), intent(in), optional  desc 
)
private

Log the version of a module to a log file and/or stdout, and/or to the parameter documentation file.

Parameters
[in]csFile parser type
[in]modulenameName of calling module
[in]versionVersion string of module
[in]descModule description

Definition at line 1244 of file MOM_file_parser.F90.

1244  type(param_file_type), intent(in) :: CS !< File parser type
1245  character(len=*), intent(in) :: modulename !< Name of calling module
1246  character(len=*), intent(in) :: version !< Version string of module
1247  character(len=*), optional, intent(in) :: desc !< Module description
1248  ! Local variables
1249  character(len=240) :: mesg
1250 
1251  mesg = trim(modulename)//": "//trim(version)
1252  if (is_root_pe()) then
1253  if (cs%log_open) write(cs%stdlog,'(a)') trim(mesg)
1254  if (cs%log_to_stdout) write(cs%stdout,'(a)') trim(mesg)
1255  endif
1256 
1257  if (present(desc)) call doc_module(cs%doc, modulename, desc)
1258 

◆ log_version_plain()

subroutine mom_file_parser::log_version::log_version_plain ( character(len=*), intent(in)  modulename,
character(len=*), intent(in)  version 
)
private

Log the version of a module to a log file and/or stdout.

Parameters
[in]modulenameName of calling module
[in]versionVersion string of module

Definition at line 1263 of file MOM_file_parser.F90.

1263  character(len=*), intent(in) :: modulename !< Name of calling module
1264  character(len=*), intent(in) :: version !< Version string of module
1265  ! Local variables
1266  character(len=240) :: mesg
1267 
1268  mesg = trim(modulename)//": "//trim(version)
1269  if (is_root_pe()) then
1270  write(stdlog(),'(a)') trim(mesg)
1271  endif
1272 

The documentation for this interface was generated from the following file: