Writes the message to the log file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message |
Message to log |
subroutine write_log(message) !! Writes the message to the log file character(len=*), intent(in) :: message !! Message to log if (.not. file_opened) then print "(a)", "ERROR: No file has been opened for writing" stop 1 end if write(log_unit, "(a)") trim(adjustl(message)) end subroutine write_log