seams_brine Derived Type

type, public :: seams_brine

Planar ice/brine front.


Finalization Procedures

final :: brine_final

  • private subroutine brine_final(self)

    Release this owner’s reference to the brine front.

    Arguments

    Type IntentOptional Attributes Name
    type(seams_brine), intent(inout) :: self

Type-Bound Procedures

procedure, public :: fronts => brine_fronts

  • interface

    private module subroutine brine_fronts(self, z_enter, z_exit, thickness, found, stat, errmsg)

    Arguments

    Type IntentOptional Attributes Name
    class(seams_brine), intent(in) :: self
    real(kind=seams_real), intent(out), optional :: z_enter
    real(kind=seams_real), intent(out), optional :: z_exit
    real(kind=seams_real), intent(out), optional :: thickness
    integer(kind=seams_int), intent(out), optional :: found
    integer(kind=seams_int), intent(out), optional :: stat
    character(len=:), intent(out), optional, allocatable :: errmsg

procedure, public :: rejection => brine_rejection

  • interface

    private module subroutine brine_rejection(self, c_ice, c_liquid, k, defined, stat, errmsg)

    Arguments

    Type IntentOptional Attributes Name
    class(seams_brine), intent(in) :: self
    real(kind=seams_real), intent(out), optional :: c_ice
    real(kind=seams_real), intent(out), optional :: c_liquid
    real(kind=seams_real), intent(out), optional :: k
    integer(kind=seams_int), intent(out), optional :: defined
    integer(kind=seams_int), intent(out), optional :: stat
    character(len=:), intent(out), optional, allocatable :: errmsg

procedure, public :: profile => brine_profile

  • interface

    private module subroutine brine_profile(self, z_mid, molality, ice_fraction, stat, errmsg)

    Arguments

    Type IntentOptional Attributes Name
    class(seams_brine), intent(in) :: self
    real(kind=seams_real), intent(out), allocatable :: z_mid(:)
    real(kind=seams_real), intent(out), allocatable :: molality(:)
    real(kind=seams_real), intent(out), allocatable :: ice_fraction(:)
    integer(kind=seams_int), intent(out), optional :: stat
    character(len=:), intent(out), optional, allocatable :: errmsg

procedure, public :: pockets => brine_pockets

  • interface

    private module subroutine brine_pockets(self, n_pockets, reservoir_waters, stat, errmsg)

    Arguments

    Type IntentOptional Attributes Name
    class(seams_brine), intent(in) :: self
    integer(kind=seams_int), intent(out) :: n_pockets
    integer(kind=seams_int), intent(out) :: reservoir_waters
    integer(kind=seams_int), intent(out), optional :: stat
    character(len=:), intent(out), optional, allocatable :: errmsg

procedure, public :: close => brine_close

  • private subroutine brine_close(self)

    Release this owner’s reference to the brine front.

    Arguments

    Type IntentOptional Attributes Name
    class(seams_brine), intent(inout) :: self

Source Code

  type, public :: seams_brine
    private
    type(handle_box), pointer :: box => null()
  contains
    procedure, public :: fronts => brine_fronts
    procedure, public :: rejection => brine_rejection
    procedure, public :: profile => brine_profile
    procedure, public :: pockets => brine_pockets
    procedure, public :: close => brine_close
    final :: brine_final
  end type seams_brine