SCORPIO  1.7.0
List of all members | Public Member Functions | Public Attributes
pioexample::pioexampleclass Type Reference

A class to hold example code and data. More...

Collaboration diagram for pioexample::pioexampleclass:
Collaboration graph
[legend]

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_tpioiosystem
 The ParallelIO system set up by PIO_init. More...
 
type(file_desc_tpiofiledesc
 Contains data identifying the file. More...
 
type(var_desc_tpiovar
 The netCDF variable ID. More...
 
type(io_desc_tiodescncells
 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...
 

Detailed Description

A class to hold example code and data.

This class contains the data and functions to execute the example.

Member Function/Subroutine Documentation

◆ cleanup()

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.

◆ closefile()

procedure, public pioexample::pioexampleclass::closefile

Close the netCDF output file.

This subroutine closes the output file used by this example.

◆ createdecomp()

procedure, public pioexample::pioexampleclass::createdecomp

Create the decomposition for the example.

This subroutine creates the decomposition for the example.

◆ createfile()

procedure, public pioexample::pioexampleclass::createfile

Create netCDF output file.

This subroutine creates the netCDF output file for the example.

◆ definevar()

procedure, public pioexample::pioexampleclass::definevar

Define the netCDF metadata.

This subroutine defines the netCDF dimension and variable used in the output file.

◆ init()

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.

◆ readvar()

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.

◆ writevar()

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.

Member Data Documentation

◆ arridxperpe

integer pioexample::pioexampleclass::arridxperpe

Number of elements handled by each processor.

◆ compdof

integer, dimension(:), allocatable pioexample::pioexampleclass::compdof

Array describing the decomposition of the data.

◆ databuffer

integer, dimension(:), allocatable pioexample::pioexampleclass::databuffer

Buffer to hold sample data that is written to netCDF file.

◆ dimlen

integer, dimension(1) pioexample::pioexampleclass::dimlen

The length of the dimension of the netCDF variable.

◆ filename

character(len=255) pioexample::pioexampleclass::filename

Name of the sample netCDF file written by this example.

◆ iodescncells

type(io_desc_t) pioexample::pioexampleclass::iodescncells

An io descriptor handle that is generated in PIO_initdecomp.

◆ iotype

integer pioexample::pioexampleclass::iotype

Specifies the flavor of netCDF output.

◆ ista

integer pioexample::pioexampleclass::ista

1-based index of start of this processors data in full data array.

◆ isto

integer pioexample::pioexampleclass::isto

Size of data array for this processor.

◆ myrank

integer pioexample::pioexampleclass::myrank

Rank of processor running the code.

◆ niotasks

integer pioexample::pioexampleclass::niotasks

Number of processors performing I/O.

◆ ntasks

integer pioexample::pioexampleclass::ntasks

Number of processors participating in MPI communicator.

◆ numaggregator

integer pioexample::pioexampleclass::numaggregator

Number of aggregator.

◆ optbase

integer pioexample::pioexampleclass::optbase

Start index of I/O processors.

◆ piodimid

integer pioexample::pioexampleclass::piodimid

The netCDF dimension ID.

◆ piofiledesc

type(file_desc_t) pioexample::pioexampleclass::piofiledesc

Contains data identifying the file.

◆ pioiosystem

type(iosystem_desc_t) pioexample::pioexampleclass::pioiosystem

The ParallelIO system set up by PIO_init.

◆ piovar

type(var_desc_t) pioexample::pioexampleclass::piovar

The netCDF variable ID.

◆ readbuffer

integer, dimension(:), allocatable pioexample::pioexampleclass::readbuffer

Buffer to read data into.

◆ stride

integer pioexample::pioexampleclass::stride

Stride in the mpi rank between io tasks.


The documentation for this type was generated from the following file: