Write a message to the log.
2014/07/29 | J. SCHOENMAEKERS | NEW 2025/02/09 | J. Williams | added trim()
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(optgra), | intent(inout) | :: | me | |||
| integer(kind=ip), | intent(in) | :: | Lev |
only print if |
||
| character(len=*), | intent(in) | :: | Str |
string to print |
subroutine ogwrit(me,Lev,Str) !! Write a message to the log. !! !! 2014/07/29 | J. SCHOENMAEKERS | NEW !! 2025/02/09 | J. Williams | added trim() class(optgra),intent(inout) :: me character(len=*),intent(in) :: Str !! string to print integer(ip),intent(in) :: Lev !! only print if `Loglev` is >= this if ( Lev<=me%Loglev ) then write (me%Loglun,'(A)') trim(Str) flush (me%Loglun) end if end subroutine ogwrit