UPP (develop)
Loading...
Searching...
No Matches
WRF_STUBS.f
1integer function wrf_sizeof_integer()
2 implicit none
3 integer i
4 wrf_sizeof_integer=storage_size(i)
5end function wrf_sizeof_integer
6
7real function wrf_sizeof_real()
8 implicit none
9 real i
10 wrf_sizeof_real=storage_size(i)
11end function wrf_sizeof_real
12
13subroutine wrf_debug(n,s)
14 implicit none
15 integer :: n
16 character*(*) :: s
17 if(n<2) print '(A)',trim(s)
18end subroutine wrf_debug
19
20subroutine wrf_message(s)
21 implicit none
22 character*(*) :: s
23 print '(A)',trim(s)
24end subroutine wrf_message
25
26subroutine wrf_error_fatal(s)
27 implicit none
28 use mpi
29 character*(*) :: s
30 integer :: i
31 write(0,'(A)') 'FATAL ERROR IN WRF DURING POST'
32 write(0,'(A)') 'wrf_error_fatal called with mesage:'
33 write(0,'(A)') trim(s)
34 call mpi_abort(mpi_comm_world,1,i)
35 stop 1
36end subroutine wrf_error_fatal
37