SCORPIO
1.7.0
|
A class to hold example code and data. More...
Public Member Functions | |
procedure, public | init |
Initialize MPI, ParallelIO, and example data. More... | |
procedure, public | createdecomp |
Create the decomposition for the example. More... | |
procedure, public | createfile |
Create netCDF output file. More... | |
procedure, public | definevar |
Define the netCDF metadata. More... | |
procedure, public | writevar |
Write the sample data to the output file. More... | |
procedure, public | readvar |
Read the sample data from the output file. More... | |
procedure, public | closefile |
Close the netCDF output file. More... | |
procedure, public | cleanup |
Clean up resources. More... | |
Public Attributes | |
integer | myrank |
Rank of processor running the code. More... | |
integer | ntasks |
Number of processors participating in MPI communicator. More... | |
integer | niotasks |
Number of processors performing I/O. More... | |
integer | stride |
Stride in the mpi rank between io tasks. More... | |
integer | numaggregator |
Number of aggregator. More... | |
integer | optbase |
Start index of I/O processors. More... | |
type(iosystem_desc_t) | pioiosystem |
The ParallelIO system set up by PIO_init. More... | |
type(file_desc_t) | piofiledesc |
Contains data identifying the file. More... | |
type(var_desc_t) | piovar |
The netCDF variable ID. More... | |
type(io_desc_t) | iodescncells |
An io descriptor handle that is generated in PIO_initdecomp. More... | |
integer | iotype |
Specifies the flavor of netCDF output. More... | |
integer | piodimid |
The netCDF dimension ID. More... | |
integer | ista |
1-based index of start of this processors data in full data array. More... | |
integer | isto |
Size of data array for this processor. More... | |
integer | arridxperpe |
Number of elements handled by each processor. More... | |
integer, dimension(1) | dimlen |
The length of the dimension of the netCDF variable. More... | |
integer, dimension(:), allocatable | databuffer |
Buffer to hold sample data that is written to netCDF file. More... | |
integer, dimension(:), allocatable | readbuffer |
Buffer to read data into. More... | |
integer, dimension(:), allocatable | compdof |
Array describing the decomposition of the data. More... | |
character(len=255) | filename |
Name of the sample netCDF file written by this example. More... | |
A class to hold example code and data.
This class contains the data and functions to execute the example.
procedure, public pioexample::pioexampleclass::cleanup |
Clean up resources.
This subroutine cleans up resources used in the example. The ParallelIO and MPI libraries are finalized, and memory allocated in this example program is freed.
procedure, public pioexample::pioexampleclass::closefile |
Close the netCDF output file.
This subroutine closes the output file used by this example.
procedure, public pioexample::pioexampleclass::createdecomp |
Create the decomposition for the example.
This subroutine creates the decomposition for the example.
procedure, public pioexample::pioexampleclass::createfile |
Create netCDF output file.
This subroutine creates the netCDF output file for the example.
procedure, public pioexample::pioexampleclass::definevar |
Define the netCDF metadata.
This subroutine defines the netCDF dimension and variable used in the output file.
procedure, public pioexample::pioexampleclass::init |
Initialize MPI, ParallelIO, and example data.
Initialize the MPI and ParallelIO libraries. Also allocate memory to write and read the sample data to the netCDF file.
procedure, public pioexample::pioexampleclass::readvar |
Read the sample data from the output file.
This subroutine reads the sample data array from the netCDF output file.
procedure, public pioexample::pioexampleclass::writevar |
Write the sample data to the output file.
This subroutine writes the sample data array to the netCDF output file.
integer pioexample::pioexampleclass::arridxperpe |
Number of elements handled by each processor.
integer, dimension(:), allocatable pioexample::pioexampleclass::compdof |
Array describing the decomposition of the data.
integer, dimension(:), allocatable pioexample::pioexampleclass::databuffer |
Buffer to hold sample data that is written to netCDF file.
integer, dimension(1) pioexample::pioexampleclass::dimlen |
The length of the dimension of the netCDF variable.
character(len=255) pioexample::pioexampleclass::filename |
Name of the sample netCDF file written by this example.
type(io_desc_t) pioexample::pioexampleclass::iodescncells |
An io descriptor handle that is generated in PIO_initdecomp.
integer pioexample::pioexampleclass::iotype |
Specifies the flavor of netCDF output.
integer pioexample::pioexampleclass::ista |
1-based index of start of this processors data in full data array.
integer pioexample::pioexampleclass::isto |
Size of data array for this processor.
integer pioexample::pioexampleclass::myrank |
Rank of processor running the code.
integer pioexample::pioexampleclass::niotasks |
Number of processors performing I/O.
integer pioexample::pioexampleclass::ntasks |
Number of processors participating in MPI communicator.
integer pioexample::pioexampleclass::numaggregator |
Number of aggregator.
integer pioexample::pioexampleclass::optbase |
Start index of I/O processors.
integer pioexample::pioexampleclass::piodimid |
The netCDF dimension ID.
type(file_desc_t) pioexample::pioexampleclass::piofiledesc |
Contains data identifying the file.
type(iosystem_desc_t) pioexample::pioexampleclass::pioiosystem |
The ParallelIO system set up by PIO_init.
type(var_desc_t) pioexample::pioexampleclass::piovar |
The netCDF variable ID.
integer, dimension(:), allocatable pioexample::pioexampleclass::readbuffer |
Buffer to read data into.
integer pioexample::pioexampleclass::stride |
Stride in the mpi rank between io tasks.