Container type for calculation resources - extensible for future needs
Container for calculation resources
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(mpi_comms_t), | public | :: | mpi_comms |
MPI communicators |
|||
| integer, | public | :: | num_gpus | = | 0 |
Available GPUs |
|
| integer, | public | :: | num_threads | = | 1 |
OpenMP threads |
|
| logical, | public | :: | use_gpu | = | .false. |
GPU acceleration flag |
| procedure, public :: finalize => resources_finalize | |
| procedure, public :: init => resources_init |
Clean up resources
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(resources_t), | intent(inout) | :: | this |
Initialize resources with default values
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(resources_t), | intent(inout) | :: | this |