bp.read: bp.read

Description Usage Arguments Value Examples

Description

This function is used to read variables. You can read one or more variables with specific range or whole.

Usage

1
2
3
bp.read(adios.filename, varname, start = NULL, count = NULL,
  comm = .pbd_env$SPMD.CT$comm, p = comm.size(.pbd_env$SPMD.CT$comm),
  adios.rank = comm.rank(.pbd_env$SPMD.CT$comm))

Arguments

adios.filename

adios file name

varname

variable name

start

start position of selection

count

length of selection

comm

mpi comm

p

number of processes

adios.rank

comm rank

Value

variable values. If start and count are not specified, all values will be returned.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
##read a scalar
bp.read("attributes.bp", "NX")

##read a variable with start
bp.read("attributes.bp", "temperature", c(0, 0))

##read a variable with count
bp.read("attributes.bp", "temperature", count=c(1, 2))

##read a variable with start and count
bp.read("attributes.bp", "temperature", c(0, 9), c(1, 1))

## End(Not run)

RBigData/pbdADIOS documentation built on May 8, 2019, 4:55 a.m.