tensor_s.f90 Source File


This file depends on

sourcefile~~tensor_s.f90~~EfferentGraph sourcefile~tensor_s.f90 tensor_s.f90 sourcefile~tensor_m.f90 tensor_m.f90 sourcefile~tensor_s.f90->sourcefile~tensor_m.f90 sourcefile~kind_parameters_m.f90 kind_parameters_m.f90 sourcefile~tensor_m.f90->sourcefile~kind_parameters_m.f90

Source Code

! Copyright (c), The Regents of the University of California
! Terms of use are as specified in LICENSE.txt
submodule(tensor_m) tensor_s
  implicit none

contains

  module procedure construct_default_real
    tensor%values_ = values
  end procedure

  module procedure construct_double_precision
    tensor%values_ = values
  end procedure

  module procedure default_real_values
    tensor_values = self%values_
  end procedure

  module procedure double_precision_values
    tensor_values = self%values_
  end procedure

  module procedure default_real_num_components
    n = size(self%values_)
  end procedure

  module procedure double_precision_num_components
    n = size(self%values_)
  end procedure

end submodule tensor_s