31 integer,
intent(in),
optional:: unit
37 character(*),
intent(in),
optional:: indent
41 logical,
intent(out),
optional:: err
59 real,
allocatable:: rvalue(:)
65 character(STRING):: indent_str
66 character(*),
parameter:: subname =
'GTVarPutLine' 68 call beginsub(subname,
'%d', i=(/var % mapid/))
74 if (
present(unit) )
then 82 if (
present(indent) )
then 83 if ( len(indent) /= 0 )
then 84 indent_len = len(indent)
85 indent_str(1:indent_len) = indent
93 if ( var % mapid < 0 )
then 95 & indent_str(1:indent_len) // &
96 &
'#<GT_VARIABLE:: @initialized=%y>', &
108 allocate(rvalue(siz), stat=stat)
113 call get(var, rvalue,
size(rvalue), err=myerr)
118 & indent_str(1:indent_len) // &
119 &
'#<GT_VARIABLE:: @initialized=%y>', &
126 & indent_str(1:indent_len) // &
127 &
'#<GT_VARIABLE:: @initialized=%y', &
130 call putline( rvalue, unit = out_unit, &
131 & lbounds = lbound(rvalue), &
132 & ubounds = ubound(rvalue), &
133 & indent = indent_str(1:indent_len) // &
141 & indent_str(1:indent_len) // &
144 deallocate(rvalue, stat=stat)
149 call endsub(subname,
'%d stat=%d', i=(/var % mapid, stat/))
integer, parameter, public gt_enomem
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_noerr
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)
integer, parameter, public stdout
Unit number for Standard OUTPUT.
Handling character types.
integer function, public errorcode()
Provides kind type parameter values.
subroutine, public endsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca)
integer, parameter, public string
Character length for string.