prism_info.F90
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 subroutine prism_info ( info, mesg )
00012
00013
00014
00015 use PRISM , dummy_interface => prism_info
00016 use PSMILe, only : psmile_flushstd, ch_id, len_cvs_string
00017
00018 implicit none
00019
00020
00021
00022 Integer, Intent(In) :: info
00023
00024
00025
00026
00027
00028 Character(len=PRISM_MAX_info_string), Intent(Out) :: mesg
00029
00030
00031
00032
00033
00034 Integer :: my_info
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 Character(len=len_cvs_string), save :: mycvs =
00052 '$Id:$'
00053
00054 #ifdef VERBOSE
00055 print 9990, trim(ch_id)
00056 call psmile_flushstd
00057 #endif /* VERBOSE */
00058
00059 mesg = 'Event: Coupling o | IO o | Restart o | Time Operation o'
00060
00061 my_info = info
00062
00063 if ( my_info >= 1000 ) then
00064 mesg(17:17) = 'x'
00065 my_info = my_info - 1000
00066 endif
00067
00068 if ( my_info >= 100 ) then
00069 mesg(24:24) = 'x'
00070 my_info = my_info - 100
00071 endif
00072
00073 if ( my_info >= 10 ) then
00074 mesg(36:36) = 'x'
00075 my_info = my_info - 10
00076 endif
00077
00078 if ( my_info == 1 ) then
00079 mesg(55:55) = 'x'
00080 endif
00081
00082 #ifdef VERBOSE
00083 print 9970, trim(ch_id), trim(mesg)
00084 print 9980, trim(ch_id)
00085
00086 call psmile_flushstd
00087 #endif /* VERBOSE */
00088
00089 9970 format (1x, a, ': prism_info: ', a)
00090 9990 format (1x, a, ': prism_info: ')
00091 9980 format (1x, a, ': prism_info: eof')
00092
00093 end subroutine prism_info