10 pure module function pd_get_name(this) result(txt)
11 class(plot_data),
intent(in) :: this
12 character(len = :),
allocatable :: txt
13 txt = trim(this%m_name)
21 module subroutine pd_set_name(this, txt)
22 class(plot_data),
intent(inout) :: this
23 character(len = *),
intent(in) :: txt
25 n = min(len(txt), plotdata_max_name_length)
28 this%m_name(1:n) = txt(1:n)