Go to the source code of this file.
◆ gtvargetattrcc()
subroutine gtvargetattrcc |
( |
type(gt_variable), intent(in) |
var, |
|
|
character(len = *), intent(in) |
name, |
|
|
character(len = *), intent(out) |
value, |
|
|
character(len = *), intent(in), optional |
default |
|
) |
| |
Definition at line 14 of file gtvargetattrsc.f90.
References dc_trace::beginsub(), dc_trace::endsub(), dc_types::string, and gtdata_internal_map::var_class().
30 character(len = *),
intent(in):: name
31 character(len = *),
intent(out):: value
32 character(len = *),
intent(in),
optional:: default
34 integer::
class, cid, stat
35 character(len = string):: p_default
36 character(len = *),
parameter:: subnam =
"gtvargetattrcc" 41 if (
present(default)) p_default = default
42 if (
class == vtb_class_netcdf)
then 44 else if (
class == vtb_class_memory)
then 46 if (err)
value = p_default
48 call endsub(subnam,
"%d:%d:%c = %c", i=(/
class, cid/), &
49 & c1=trim(name), c2=trim(value))
subroutine, public beginsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca, version)
Provides kind type parameter values.
subroutine, public endsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca)
subroutine, public var_class(var, class, cid)
integer, parameter, public string
Character length for string.