Variable_deserialize Subroutine

public subroutine Variable_deserialize(buffer, var, rc)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: buffer(:)
type(Variable), intent(inout) :: var
integer, intent(out), optional :: rc

Calls

proc~~variable_deserialize~~CallsGraph proc~variable_deserialize Variable_deserialize interface~deserialize_intrinsic deserialize_intrinsic proc~variable_deserialize->interface~deserialize_intrinsic interface~mapl_assert MAPL_Assert proc~variable_deserialize->interface~mapl_assert interface~serialize_buffer_length serialize_buffer_length proc~variable_deserialize->interface~serialize_buffer_length proc~mapl_return MAPL_Return proc~variable_deserialize->proc~mapl_return proc~mapl_verify MAPL_Verify proc~variable_deserialize->proc~mapl_verify proc~stringattributemap_deserialize StringAttributeMap_deserialize proc~variable_deserialize->proc~stringattributemap_deserialize proc~stringvector_deserialize StringVector_deserialize proc~variable_deserialize->proc~stringvector_deserialize proc~unlimitedentity_deserialize UnlimitedEntity_deserialize proc~variable_deserialize->proc~unlimitedentity_deserialize at at proc~mapl_return->at insert insert proc~mapl_return->insert proc~mapl_throw_exception MAPL_throw_exception proc~mapl_return->proc~mapl_throw_exception proc~mapl_verify->proc~mapl_throw_exception proc~stringattributemap_deserialize->interface~deserialize_intrinsic proc~stringattributemap_deserialize->interface~mapl_assert proc~stringattributemap_deserialize->interface~serialize_buffer_length proc~stringattributemap_deserialize->proc~mapl_return proc~stringattributemap_deserialize->proc~mapl_verify none~insert~170 StringAttributeMap%insert proc~stringattributemap_deserialize->none~insert~170 proc~attribute_deserialize Attribute_deserialize proc~stringattributemap_deserialize->proc~attribute_deserialize proc~stringvector_deserialize->interface~deserialize_intrinsic proc~stringvector_deserialize->interface~serialize_buffer_length proc~stringvector_deserialize->proc~mapl_return push_back push_back proc~stringvector_deserialize->push_back stringvector stringvector proc~stringvector_deserialize->stringvector proc~unlimitedentity_deserialize->interface~deserialize_intrinsic proc~unlimitedentity_deserialize->interface~mapl_assert proc~unlimitedentity_deserialize->interface~serialize_buffer_length proc~unlimitedentity_deserialize->proc~mapl_return proc~unlimitedentity_deserialize->proc~mapl_verify none~get_rank UnlimitedEntity%get_rank proc~unlimitedentity_deserialize->none~get_rank none~set~93 UnlimitedEntity%set proc~unlimitedentity_deserialize->none~set~93 none~get_rank->proc~mapl_return none~get_shape UnlimitedEntity%get_shape none~get_rank->none~get_shape none~insert_pair~18 StringAttributeMap%insert_pair none~insert~170->none~insert_pair~18 none~set~93->proc~mapl_return proc~attribute_deserialize->proc~mapl_return proc~attribute_deserialize->proc~mapl_verify proc~attribute_deserialize->proc~unlimitedentity_deserialize none~get_shape->proc~mapl_return

Called by

proc~~variable_deserialize~~CalledByGraph proc~variable_deserialize Variable_deserialize proc~coordinatevariable_deserialize CoordinateVariable_deserialize proc~coordinatevariable_deserialize->proc~variable_deserialize proc~filemetadata_deserialize FileMetadata_deserialize proc~filemetadata_deserialize->proc~variable_deserialize proc~stringvariablemap_deserialize StringVariableMap_deserialize proc~filemetadata_deserialize->proc~stringvariablemap_deserialize proc~stringvariablemap_deserialize->proc~variable_deserialize proc~stringvariablemap_deserialize->proc~coordinatevariable_deserialize proc~test_serialize~5 test_serialize proc~test_serialize~5->proc~variable_deserialize proc~historycollectionvector_deserialize HistoryCollectionVector_deserialize proc~historycollectionvector_deserialize->proc~filemetadata_deserialize proc~test_serialize~4 test_serialize proc~test_serialize~4->proc~filemetadata_deserialize proc~test_serialize~6 test_serialize proc~test_serialize~6->proc~coordinatevariable_deserialize

Source Code

   subroutine Variable_deserialize(buffer, var, rc)
      integer, intent(in) :: buffer(:)
      type (Variable), intent(inout) :: var
      integer, optional, intent(out) :: rc
      integer :: status
      var = Variable()
      call deserialize(var, buffer, rc=status)
      _VERIFY(status)
      _RETURN(_SUCCESS)
   contains
      subroutine deserialize(this, buffer, rc)
         class (Variable), intent(inout) :: this
         integer,intent(in) :: buffer(:)
         integer, optional, intent(out) :: rc
         integer :: n,length, v_type
         integer :: status

         n = 1
         call deserialize_intrinsic(buffer(n:),length)
         _ASSERT(length == size(buffer), "length does not match")

         length = serialize_buffer_length(length)
         n = n+length
         call deserialize_intrinsic(buffer(n:),v_type)
         length = serialize_buffer_length(v_type)
         n = n+length
         call deserialize_intrinsic(buffer(n:),this%type)
         length = serialize_buffer_length(this%type)
         n = n+length
         call StringVector_deserialize(buffer(n:), this%dimensions, status)
         _VERIFY(status)
         call deserialize_intrinsic(buffer(n:),length)
         n = n + length
         call deserialize_intrinsic(buffer(n:),length)
         call StringAttributeMap_deserialize(buffer(n:n+length-1),this%attributes, status)
         _VERIFY(status)

         n = n + length

         call deserialize_intrinsic(buffer(n:),length)
         call UnlimitedEntity_deserialize(buffer(n:(n+length-1)), this%const_value, status)
         _VERIFY(status)

         n = n + length
         call deserialize_intrinsic(buffer(n:),this%deflation)
         length = serialize_buffer_length(this%deflation)
         n = n + length
         call deserialize_intrinsic(buffer(n:),this%quantize_algorithm)
         length = serialize_buffer_length(this%quantize_algorithm)
         n = n + length
         call deserialize_intrinsic(buffer(n:),this%quantize_level)
         length = serialize_buffer_length(this%quantize_level)
         n = n + length
         call deserialize_intrinsic(buffer(n:),this%zstandard_level)
         length = serialize_buffer_length(this%zstandard_level)
         n = n + length
         call deserialize_intrinsic(buffer(n:),this%chunksizes)
         _RETURN(_SUCCESS)
      end subroutine deserialize
  end subroutine Variable_deserialize