|
Globals Library 1.0
|
Auxiliary module to store an integer and real array used (typically as optional argument) as scratch in different code. More...
Data Types | |
| type | scrt |
Functions/Subroutines | |
| subroutine | range (size, ibegin, iend) |
Procedure to define portion of member scrt::iaux or scrt::raux | |
| subroutine | init_scrt (this, lun_err, niaux, nraux) |
Static constructor for scratch::scrt | |
| subroutine | kill_scrt (this, lun) |
Destructor for scratch::scrt. | |
| subroutine | info_scrt (this, lun) |
Info procedure for scratch::scrt | |
| logical function | check_scrt (this, niaux, nraux) |
| Check is scratch arrays are big enoguh. | |
Auxiliary module to store an integer and real array used (typically as optional argument) as scratch in different code.
| subroutine scratch::range | ( | integer, intent(in) | size, |
| integer, intent(out) | ibegin, | ||
| integer, intent(inout) | iend ) |
Procedure to define portion of member scrt::iaux or scrt::raux
Example: partioning raux in two portion of length n1 and n2, assign it to two two real pointer v1 and v2.
| [in] | size | integer. Size of array required |
| [out] | ibegin | integer. Start position of array portion |
| [in,out] | iend | integer. End position of array portion. It cointains the end position of previous array or it must begin initialize to zero. |
|
private |
Static constructor for scratch::scrt
Set scrt::niaux and scrt::nraux and allocate arrays scrt::iaux and scrt::raux.
| [in] | lun_err | integer, unit for error message output |
| [in] | niaux | integer, length integer array |
| [in] | nraux | integer, length real array |
|
private |
Destructor for scratch::scrt.
Deallocate variables scrt::iaux and scrt::raux.
| [in] | lun | integer, unit number for error message |
|
private |
Info procedure for scratch::scrt
Prints content of a variable of type scratch::scrt
| [in] | lun | integer, unit number for output message |
|
private |
Check is scratch arrays are big enoguh.
Return false if a variable of type scratch::scrt is not initialized, or it contains integer or real array that are too small.
| [in] | niaux | integer. Number of integer required |
| [in] | nraux | integer. Number of real required |
True: type initialized and big enough, False type not initialized or not big enough.