Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Electronic Structure Library
omm-bundle
Commits
2768fa44
Commit
2768fa44
authored
Feb 07, 2017
by
Fabiano Corsetti
Browse files
Added Doxygen documentation for the MatrixSwitch wrapper
parent
ebe20504
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
MatrixSwitch/src/MatrixSwitch_wrapper.F90
View file @
2768fa44
This diff is collapsed.
Click to expand it.
MatrixSwitch/src/MatrixSwitch_wrapper_params.F90
View file @
2768fa44
...
...
@@ -7,7 +7,7 @@
!==============================================================================!
module
MatrixSwitch_wrapper_params
use
MatrixSwitch
,
only
:
matrix
use
MatrixSwitch_ops
,
only
:
die
use
MatrixSwitch_ops
,
only
:
dp
,
die
implicit
none
...
...
@@ -15,16 +15,15 @@ module MatrixSwitch_wrapper_params
!**** PARAMS ************************************!
integer
,
parameter
::
dp
=
selected_real_kind
(
15
,
300
)
integer
,
parameter
::
max_key_length
=
10
integer
,
parameter
::
max_key_length
=
10
!< Maximum character length of keys.
!**** VARIABLES *********************************!
character
(
max_key_length
),
allocatable
::
ms_keys
(:)
character
(
max_key_length
),
allocatable
::
ms_keys
(:)
!< Array of keys.
integer
::
ms_num_matrices
integer
::
ms_num_matrices
!< Number of matrices stored in the wrapper.
type
(
matrix
),
allocatable
::
ms_matrices
(:)
type
(
matrix
),
allocatable
::
ms_matrices
(:)
!< Array of MatrixSwitch matrices stored in the wrapper.
!************************************************!
...
...
@@ -36,9 +35,15 @@ module MatrixSwitch_wrapper_params
contains
!================================================!
! map key to index of ms_matrices array !
!================================================!
!============================================================================!
!> @brief MatrixSwitch wrapper map lookup.
!!
!! Finds the value bound to the given key, corresponding to the index of the
!! matrix in the \p ms_matrices array.
!!
!! @param[in] key They key of the matrix.
!! @return The index of the matrix in \p ms_matrices.
!============================================================================!
integer
function
ms_lookup
(
key
)
implicit
none
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment