|
NTPoly
|
A Module For Storing Triplets of Integer, Integer, Double. More...
Data Types | |
| type | triplet_t |
| A data type for a triplet of integer, integer, double. As this is related to matrix multiplication, the referencing indices are rows and columns. More... | |
Functions/Subroutines | |
| pure subroutine, public | settriplet (this, index_column, index_row, point_value) |
| For error handling in this module. More... | |
| pure subroutine, public | gettripletvalues (this, index_column, index_row, point_value) |
| Get the values of a triplet. More... | |
| pure logical function, public | comparetriplets (tripA, tripB) |
| Compare two triplets based on their index values, first by column and second by row. Returns A < B. Used for sorting. More... | |
| integer function, public | getmpitriplettype () |
| Returns an MPI Derived Data Type For A Triplet. We statically store this derived type so that we don't have to recreate it every time this function is called. Thus this functional call should add very little overhead. More... | |
Variables | |
| logical | set_mpi_triplet_type = .FALSE. |
| Flag about whether we've registered an mpi triplet type before. | |
A Module For Storing Triplets of Integer, Integer, Double.
| pure logical function, public tripletmodule::comparetriplets | ( | type(triplet_t), intent(in) | tripA, |
| type(triplet_t), intent(in) | tripB | ||
| ) |
Compare two triplets based on their index values, first by column and second by row. Returns A < B. Used for sorting.
| [in] | tripA | first triplet. |
| [in] | tripB | second triplet. |
| integer function, public tripletmodule::getmpitriplettype | ( | ) |
Returns an MPI Derived Data Type For A Triplet. We statically store this derived type so that we don't have to recreate it every time this function is called. Thus this functional call should add very little overhead.
| pure subroutine, public tripletmodule::gettripletvalues | ( | type(triplet_t), intent(in) | this, |
| integer, intent(out) | index_column, | ||
| integer, intent(out) | index_row, | ||
| real(ntreal), intent(out) | point_value | ||
| ) |
Get the values of a triplet.
| [in] | this | the triplet to extract the values of. |
| [out] | index_column | column value. |
| [out] | index_row | row value. |
| [out] | point_value | actual stored value. |
| pure subroutine, public tripletmodule::settriplet | ( | type(triplet_t), intent(inout) | this, |
| integer, intent(in) | index_column, | ||
| integer, intent(in) | index_row, | ||
| real(ntreal), intent(in) | point_value | ||
| ) |
For error handling in this module.
Set the values of a triplet.
| [in,out] | this | the triplet to set the values of. |
| [in] | index_column | the column value. |
| [in] | index_row | the row value. |
| [in] | point_value | the value at that point. |
1.8.14