OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
local_message_handler.f90
Go to the documentation of this file.
1  subroutine local_message_handler(message, severity,functionname)
2 
4  implicit none
5 
6 ! include 'PGS_SMF.f'
7 ! include 'PGS_IO.f'
8 ! include 'PGS_MODIS_39500.f'
9 
10  character*(*), intent(in) :: message, functionname
11  integer, intent(in) :: severity
12  select case(severity)
13  case(success)
14 ! do nothing for operational algorithm
15  case(warning)
16  print*, "WARNING: ", message
17 ! call modis_smf_setdynamicmsg(MODIS_W_GENERIC,message,functionname)
18  case(error)
19  print*, "ERROR: ", message
20  stop
21 ! call modis_smf_setdynamicmsg(MODIS_E_GENERIC,message,functionname)
22  case(failure)
23  print*, "FAILURE, CRITICAL ERROR: ", message
24  stop
25 ! call modis_smf_setdynamicmsg(MODIS_F_GENERIC,message,functionname)
26  end select
27  end subroutine local_message_handler
subroutine local_message_handler(message, severity, functionname)