Actual size of a bspline_2d structure in bits.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bspline_2d), | intent(in) | :: | me |
size of the structure in bits
pure function size_2d(me) result(s) implicit none class(bspline_2d),intent(in) :: me integer(ip) :: s !! size of the structure in bits s = 2_ip*int_size + logical_size + 6_ip*int_size if (allocated(me%bcoef)) s = s + real_size*size(me%bcoef,1_ip,kind=ip)*& size(me%bcoef,2_ip,kind=ip) if (allocated(me%tx)) s = s + real_size*size(me%tx,kind=ip) if (allocated(me%ty)) s = s + real_size*size(me%ty,kind=ip) if (allocated(me%work_val_1)) s = s + real_size*size(me%work_val_1,kind=ip) if (allocated(me%work_val_2)) s = s + real_size*size(me%work_val_2,kind=ip) end function size_2d