|
MPI-SCATCI
2.0
An MPI version of SCATCI
|
Utility module. More...
Functions/Subroutines | |
| integer(longint) function, public | compute_total_triangular (n) |
| Calculate triangular area. More... | |
| integer function, public | compute_total_box (width, height) |
| Calculate rectangular product. More... | |
| subroutine, public | box_index_to_ij (idx, height, i, j) |
| Extract indices from rectangular multi-index. More... | |
| subroutine, public | triangular_index_to_ij (idx_f, N, row, column) |
| Extract indices from triangular multi-index. More... | |
| integer function, public | string_hash (str, table_size) |
| Calculate a string hash. More... | |
| real(wp) function, public | get_real_time () |
| Get current (real) time. More... | |
| real(wp) function, public | get_cpu_time () |
| Get current (CPU) time. More... | |
Utility module.
| subroutine, public utility_module::box_index_to_ij | ( | integer, intent(in) | idx, |
| integer, intent(in) | height, | ||
| integer, intent(out) | i, | ||
| integer, intent(out) | j | ||
| ) |
Extract indices from rectangular multi-index.
Definition at line 72 of file Utility_module.f90.

| integer function, public utility_module::compute_total_box | ( | integer, intent(in) | width, |
| integer, intent(in) | height | ||
| ) |
Calculate rectangular product.
Calculate width*height.
Definition at line 60 of file Utility_module.f90.

| integer(longint) function, public utility_module::compute_total_triangular | ( | integer, intent(in) | n | ) |
Calculate triangular area.
Calculate n*(n+1)/2.
Definition at line 46 of file Utility_module.f90.
| real(wp) function, public utility_module::get_cpu_time |
| real(wp) function, public utility_module::get_real_time |
Get current (real) time.
Uses a function from GBTOlib.
Definition at line 132 of file Utility_module.f90.

| integer function, public utility_module::string_hash | ( | character(len=*), intent(in) | str, |
| integer, intent(in) | table_size | ||
| ) |
Calculate a string hash.
This hash assumes at least 29-bit integers. It is supposedly documented in Aho, Sethi, and Ullman, pp. 434-438
Definition at line 109 of file Utility_module.f90.

| subroutine, public utility_module::triangular_index_to_ij | ( | integer, intent(in) | idx_f, |
| integer, intent(in) | N, | ||
| integer, intent(out) | row, | ||
| integer, intent(out) | column | ||
| ) |
Extract indices from triangular multi-index.
Definition at line 86 of file Utility_module.f90.