(git:db3ef62)
transport_env_types Module Reference

CP2K transport environment and related C-interoperable types. More...

Functions/Subroutines

subroutine, public transport_env_release (transport_env)
 releases the transport_env More...
 
subroutine, public csr_interop_nullify (csr_interop_mat)
 nullifies (and zeroizes) a C-interoperable CSR matrix More...
 
subroutine, public csr_interop_matrix_get_info (csr_interop_mat, nrows_total, ncols_total, nze_local, nze_total, nrows_local, data_type, first_row, rowptr_local, colind_local, nzerow_local, nzvals_local)
 gets the fields of a C-interoperable CSR matrix More...
 

Detailed Description

CP2K transport environment and related C-interoperable types.

History
05.2013 created C-interoperable matrices [Hossein Bani-Hashemian] 07.2013 created transport_env [Hossein Bani-Hashemian] 11.2014 revised into CSR matrices [Hossein Bani-Hashemian] 12.2014 merged csr_interop and transport [Hossein Bani-Hashemian]
Author
Mohammad Hossein Bani-Hashemian

Function/Subroutine Documentation

◆ transport_env_release()

subroutine, public transport_env_types::transport_env_release ( type(transport_env_type), pointer  transport_env)

releases the transport_env

Parameters
[in,out]transport_envthe transport_env to be released
Author
Mohammad Hossein Bani-Hashemian

Definition at line 138 of file transport_env_types.F.

Here is the caller graph for this function:

◆ csr_interop_nullify()

subroutine, public transport_env_types::csr_interop_nullify ( type(cp2k_csr_interop_type), intent(inout)  csr_interop_mat)

nullifies (and zeroizes) a C-interoperable CSR matrix

Parameters
[in,out]csr_interop_matthe matrix to be nullified
Author
Mohammad Hossein Bani-Hashemian

Definition at line 177 of file transport_env_types.F.

Here is the caller graph for this function:

◆ csr_interop_matrix_get_info()

subroutine, public transport_env_types::csr_interop_matrix_get_info ( type(cp2k_csr_interop_type), intent(in)  csr_interop_mat,
integer, intent(out), optional  nrows_total,
integer, intent(out), optional  ncols_total,
integer, intent(out), optional  nze_local,
integer, intent(out), optional  nze_total,
integer, intent(out), optional  nrows_local,
integer, intent(out), optional  data_type,
integer, intent(out), optional  first_row,
integer, dimension(:), intent(out), optional, pointer  rowptr_local,
integer, dimension(:), intent(out), optional, pointer  colind_local,
integer, dimension(:), intent(out), optional, pointer  nzerow_local,
real(dp), dimension(:), intent(out), optional, pointer  nzvals_local 
)

gets the fields of a C-interoperable CSR matrix

Parameters
[in]csr_interop_matC-interoperable CSR matrix
[out]nrows_totaltotal number of rows
[out]ncols_totaltotal number of columns
[out]nze_localnumber of local nonzero elements
[out]nze_totaltotal number of nonzero elements
[out]nrows_localnumber of local rows
[out]data_typedata type
[out]first_rowindex of the first row (C indexing)
[out]rowptr_localrow pointer (local - Fortran indexing)
[out]colind_localcolumn index (local - Fortran indexing)
[out]nzerow_localnumber of nunzeros per row (index-i, local - Fortran indexing)
[out]nzvals_localnonzero elements (local)
Author
Mohammad Hossein Bani-Hashemian

Definition at line 219 of file transport_env_types.F.