56 integer,
intent(in),
optional:: unit
57 character(*),
intent(in),
optional:: indent
58 logical,
intent(out),
optional:: err
63 real,
allocatable:: rvalue(:)
69 character(STRING):: indent_str
70 character(*),
parameter:: subname =
'GTVarPutLine'
72 call beginsub(subname,
'%d', i=(/var % mapid/))
78 if (
present(unit) )
then
86 if (
present(indent) )
then
87 if ( len(indent) /= 0 )
then
88 indent_len = len(indent)
89 indent_str(1:indent_len) = indent
97 if ( var % mapid < 0 )
then
99 & indent_str(1:indent_len) // &
100 &
'#<GT_VARIABLE:: @initialized=%y>', &
112 allocate(rvalue(siz), stat=stat)
117 call get(var, rvalue,
size(rvalue), err=myerr)
122 & indent_str(1:indent_len) // &
123 &
'#<GT_VARIABLE:: @initialized=%y>', &
130 & indent_str(1:indent_len) // &
131 &
'#<GT_VARIABLE:: @initialized=%y', &
134 call putline( rvalue, unit = out_unit, &
135 & lbounds = lbound(rvalue), &
136 & ubounds = ubound(rvalue), &
137 & indent = indent_str(1:indent_len) // &
145 & indent_str(1:indent_len) // &
148 deallocate(rvalue, stat=stat)
153 call endsub(subname,
'%d stat=%d', i=(/var % mapid, stat/))
subroutine gtvarputline(var, unit, indent, err)
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_noerr
Error storage variables
integer, parameter, public gt_enomem
integer function, public errorcode()
Handling character types.
subroutine, public dbgmessage(fmt, i, r, d, l, n, c1, c2, c3, ca)
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Provides kind type parameter values.
integer, parameter, public stdout
Unit number for Standard OUTPUT
integer, parameter, public string
Character length for string