1 subroutine da_warning(file_str, line, warnings)
3 !--------------------------------------------------------------------
4 ! Purpose: Standard interface for warning messages
5 !--------------------------------------------------------------------
9 character(len=*), intent(in) :: file_str
10 integer, intent(in) :: line
11 character(len=*), intent(in) :: warnings(:)
12 character*256 :: line_str
13 character*256 :: html_file
14 #if defined(DM_PARALLEL) && ! defined(STUBMPI)
18 if (warnings_are_fatal) then
19 call da_error(file_str, line, warnings)
21 write(line_str,'(i6)') line
23 html_file=file_str(1:LEN_trim(file_str)-4)//'.html'
25 #if defined(DM_PARALLEL) && ! defined(STUBMPI)
27 '--------------------------- WARNING ---------------------------')
28 ! only print file and line if line is positive
31 call wrf_message('WARNING FROM FILE: <A HREF="'// &
32 trim(documentation_url)//'/'//trim(html_file)//'">'// &
34 '</a> LINE: '//trim(line_str))
36 call wrf_message('WARNING FROM FILE: '//trim(file_str)// &
37 ' LINE: '//trim(line_str))
41 call wrf_message(warnings(i))
44 '---------------------------------------------------------------')
47 '---------------------------- WARNING --------------------------')
48 ! only print file and line if line is positive
51 call wrf_message2('WARNING FROM FILE: <A HREF="'// &
52 trim(documentation_url)//'/'//trim(html_file)//'">'// &
53 trim(file_str)//'</a> LINE: '//trim(line_str))
55 call wrf_message2('WARNING FROM FILE: '//trim(file_str)// &
56 ' LINE: '//trim(line_str))
59 call da_message(warnings)
61 '---------------------------------------------------------------')
65 end subroutine da_warning