SABER
type_vbal Module Reference

Vertical balance derived type. More...

Data Types

type  vbal_type
 

Functions/Subroutines

subroutine vbal_alloc (vbal, nam, geom, bpar)
 Allocation. More...
 
subroutine vbal_partial_dealloc (vbal)
 Release memory (partial) More...
 
subroutine vbal_dealloc (vbal)
 Release memory (full) More...
 
subroutine vbal_read (vbal, mpl, nam, geom, bpar)
 Read. More...
 
subroutine vbal_write (vbal, mpl, nam, geom, bpar)
 Write. More...
 
subroutine vbal_run_vbal (vbal, mpl, rng, nam, geom, bpar, ens, ensu)
 Compute vertical balance. More...
 
subroutine vbal_run_vbal_tests (vbal, mpl, rng, nam, geom, bpar, io)
 Compute vertical balance tests. More...
 
subroutine vbal_apply (vbal, nam, geom, bpar, fld)
 Apply vertical balance. More...
 
subroutine vbal_apply_inv (vbal, nam, geom, bpar, fld)
 Apply inverse vertical balance. More...
 
subroutine vbal_apply_ad (vbal, nam, geom, bpar, fld)
 Apply adjoint vertical balance. More...
 
subroutine vbal_apply_inv_ad (vbal, nam, geom, bpar, fld)
 Apply inverse adjoint vertical balance. More...
 
subroutine vbal_test_inverse (vbal, mpl, rng, nam, geom, bpar)
 Test vertical balance inverse. More...
 
subroutine vbal_test_adjoint (vbal, mpl, rng, nam, geom, bpar)
 Test vertical balance adjoint. More...
 
subroutine vbal_test_dirac (vbal, mpl, nam, geom, bpar, io)
 Apply vertical balance to diracs. More...
 

Detailed Description

Vertical balance derived type.

Function/Subroutine Documentation

◆ vbal_alloc()

subroutine type_vbal::vbal_alloc ( class(vbal_type), intent(inout)  vbal,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar 
)
private

Allocation.

Parameters
[in,out]vbalVertical balance
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters

Definition at line 62 of file type_vbal.F90.

◆ vbal_apply()

subroutine type_vbal::vbal_apply ( class(vbal_type), intent(in)  vbal,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar,
real(kind_real), dimension(geom%nc0a,geom%nl0,nam%nv), intent(inout)  fld 
)
private

Apply vertical balance.

Parameters
[in]vbalVertical balance
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters
[in,out]fldSource/destination vector

Definition at line 471 of file type_vbal.F90.

◆ vbal_apply_ad()

subroutine type_vbal::vbal_apply_ad ( class(vbal_type), intent(in)  vbal,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar,
real(kind_real), dimension(geom%nc0a,geom%nl0,nam%nv), intent(inout)  fld 
)
private

Apply adjoint vertical balance.

Parameters
[in]vbalVertical balance
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters
[in,out]fldSource/destination vector

Definition at line 547 of file type_vbal.F90.

◆ vbal_apply_inv()

subroutine type_vbal::vbal_apply_inv ( class(vbal_type), intent(in)  vbal,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar,
real(kind_real), dimension(geom%nc0a,geom%nl0,nam%nv), intent(inout)  fld 
)
private

Apply inverse vertical balance.

Parameters
[in]vbalVertical balance
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters
[in,out]fldSource/destination vector

Definition at line 509 of file type_vbal.F90.

◆ vbal_apply_inv_ad()

subroutine type_vbal::vbal_apply_inv_ad ( class(vbal_type), intent(in)  vbal,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar,
real(kind_real), dimension(geom%nc0a,geom%nl0,nam%nv), intent(inout)  fld 
)
private

Apply inverse adjoint vertical balance.

Parameters
[in]vbalVertical balance
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters
[in,out]fldSource/destination vector

Definition at line 585 of file type_vbal.F90.

◆ vbal_dealloc()

subroutine type_vbal::vbal_dealloc ( class(vbal_type), intent(inout)  vbal)
private

Release memory (full)

Parameters
[in,out]vbalVertical balance

Definition at line 122 of file type_vbal.F90.

◆ vbal_partial_dealloc()

subroutine type_vbal::vbal_partial_dealloc ( class(vbal_type), intent(inout)  vbal)
private

Release memory (partial)

Parameters
[in,out]vbalVertical balance

Definition at line 97 of file type_vbal.F90.

◆ vbal_read()

subroutine type_vbal::vbal_read ( class(vbal_type), intent(inout)  vbal,
type(mpl_type), intent(inout)  mpl,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar 
)
private

Read.

Parameters
[in,out]vbalVertical balance
[in,out]mplMPI data
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters

Definition at line 154 of file type_vbal.F90.

◆ vbal_run_vbal()

subroutine type_vbal::vbal_run_vbal ( class(vbal_type), intent(inout)  vbal,
type(mpl_type), intent(inout)  mpl,
type(rng_type), intent(inout)  rng,
type(nam_type), intent(inout)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar,
type(ens_type), intent(inout)  ens,
type(ens_type), intent(inout)  ensu 
)
private

Compute vertical balance.

Parameters
[in,out]vbalVertical balance
[in,out]mplMPI data
[in,out]rngRandom number generator
[in,out]namNamelist
[in]geomGeometry
[in]bparBlock parameters
[in,out]ensEnsemble
[in,out]ensuUnbalanced ensemble

Definition at line 305 of file type_vbal.F90.

◆ vbal_run_vbal_tests()

subroutine type_vbal::vbal_run_vbal_tests ( class(vbal_type), intent(inout)  vbal,
type(mpl_type), intent(inout)  mpl,
type(rng_type), intent(inout)  rng,
type(nam_type), intent(inout)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar,
type(io_type), intent(in)  io 
)
private

Compute vertical balance tests.

Parameters
[in,out]vbalVertical balance
[in,out]mplMPI data
[in,out]rngRandom number generator
[in,out]namNamelist
[in]geomGeometry
[in]bparBlock parameters
[in]ioI/O

Definition at line 437 of file type_vbal.F90.

◆ vbal_test_adjoint()

subroutine type_vbal::vbal_test_adjoint ( class(vbal_type), intent(in)  vbal,
type(mpl_type), intent(inout)  mpl,
type(rng_type), intent(inout)  rng,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar 
)
private

Test vertical balance adjoint.

Parameters
[in]vbalVertical balance
[in,out]mplMPI data
[in,out]rngRandom number generator
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters

Definition at line 684 of file type_vbal.F90.

◆ vbal_test_dirac()

subroutine type_vbal::vbal_test_dirac ( class(vbal_type), intent(in)  vbal,
type(mpl_type), intent(inout)  mpl,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar,
type(io_type), intent(in)  io 
)
private

Apply vertical balance to diracs.

Parameters
[in]vbalVertical balance
[in,out]mplMPI data
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters
[in]ioI/O

Definition at line 755 of file type_vbal.F90.

◆ vbal_test_inverse()

subroutine type_vbal::vbal_test_inverse ( class(vbal_type), intent(in)  vbal,
type(mpl_type), intent(inout)  mpl,
type(rng_type), intent(inout)  rng,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar 
)
private

Test vertical balance inverse.

Parameters
[in]vbalVertical balance
[in,out]mplMPI data
[in,out]rngRandom number generator
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters

Definition at line 623 of file type_vbal.F90.

◆ vbal_write()

subroutine type_vbal::vbal_write ( class(vbal_type), intent(inout)  vbal,
type(mpl_type), intent(inout)  mpl,
type(nam_type), intent(in)  nam,
type(geom_type), intent(in)  geom,
type(bpar_type), intent(in)  bpar 
)
private

Write.

Parameters
[in,out]vbalVertical balance
[in,out]mplMPI data
[in]namNamelist
[in]geomGeometry
[in]bparBlock parameters

Definition at line 225 of file type_vbal.F90.