An overloaded interface to log version information about modules.
Definition at line 109 of file MOM_file_parser.F90.
|
|
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...
|
|
◆ 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] | cs | File parser type |
[in] | modulename | Name of calling module |
[in] | version | Version string of module |
[in] | desc | Module description |
Definition at line 1244 of file MOM_file_parser.F90.
1244 type(param_file_type),
intent(in) :: CS
1245 character(len=*),
intent(in) :: modulename
1246 character(len=*),
intent(in) :: version
1247 character(len=*),
optional,
intent(in) :: desc
1249 character(len=240) :: mesg
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)
1257 if (
present(desc))
call doc_module(cs%doc, modulename, desc)
◆ 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] | modulename | Name of calling module |
[in] | version | Version string of module |
Definition at line 1263 of file MOM_file_parser.F90.
1263 character(len=*),
intent(in) :: modulename
1264 character(len=*),
intent(in) :: version
1266 character(len=240) :: mesg
1268 mesg = trim(modulename)//
": "//trim(version)
1269 if (is_root_pe())
then
1270 write(stdlog(),
'(a)') trim(mesg)
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/src/framework/MOM_file_parser.F90