psmile_assert.F90
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 subroutine psmile_assert (file, line, msg)
00012
00013
00014
00015 use PSMILe, dummy_interface => PSMILe_Assert
00016
00017 implicit none
00018
00019
00020
00021 character(len=*), Intent(In) :: file
00022
00023
00024
00025 character(len=*), Intent(In) :: msg
00026
00027
00028
00029 integer, Intent(In) :: line
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052 Character(len=len_cvs_string), save :: mycvs =
00053 '$Id: psmile_assert.F90 2325 2010-04-21 15:00:07Z valcke $'
00054
00055
00056
00057
00058
00059
00060 write (*, 9990) Appl%rank, trim(file), line, &
00061 trim(Appl%name), trim(msg)
00062
00063 call psmile_flushstd
00064
00065 call psmile_abort
00066
00067 9990 format (1x, '[', i3, '] !!! Assertion violation: ', a, &
00068 ': line', i6 &
00069 /1x, 'component: ', a &
00070 /1x, 'message: ', a)
00071
00072 end subroutine PSMILe_Assert