42 integer (SCRIP_i4),
parameter,
public :: &
60 integer (SCRIP_i4),
parameter :: &
61 scrip_errorlogdepth = 20
64 integer (SCRIP_i4) :: &
65 scrip_errormsgcount = 0
67 character (SCRIP_CharLength),
dimension(SCRIP_ErrorLogDepth) :: &
91 integer (SCRIP_i4),
intent(out) :: &
96 character (*),
intent(in) :: &
108 character(SCRIP_charLength) :: &
125 scrip_errormsgcount = scrip_errormsgcount + 1
127 if (scrip_errormsgcount <= scrip_errorlogdepth)
then
128 write(logerrormsg,
'(a,a2,a)') rtnname,
': ',errormsg
129 scrip_errorlog(scrip_errormsgcount) = logerrormsg
160 logical (SCRIP_logical) :: &
165 integer (SCRIP_i4),
intent(in) :: &
168 character (*),
intent(in) :: &
180 character (SCRIP_charLength) :: &
202 scrip_errormsgcount = scrip_errormsgcount + 1
204 if (scrip_errormsgcount <= scrip_errorlogdepth)
then
205 write(logerrormsg,
'(a,a2,a)') rtnname,
': ',errormsg
206 scrip_errorlog(scrip_errormsgcount) = logerrormsg
236 integer (SCRIP_i4),
intent(in),
optional :: &
247 integer (SCRIP_i4) :: n
255 if (
present(printtask))
then
264 if (scrip_errormsgcount == 0)
then
267 'Successful completion of SCRIP model'
273 do n=1,min(scrip_errormsgcount,scrip_errorlogdepth)
280 if (scrip_errormsgcount > scrip_errorlogdepth)
then
301 if (scrip_errormsgcount == 0)
then
303 write(
scrip_stdout,
'(a34)')
'Successful completion of SCRIP'
309 do n=1,min(scrip_errormsgcount,scrip_errorlogdepth)
316 if (scrip_errormsgcount > scrip_errorlogdepth)
then