nc_var_par_access {pbdNCDF4} | R Documentation |
Switches between the default individual access and collective access for a
variable in a file that was opened with nc_open_par
or
nc_create_par
.
nc_var_par_access(nc, var, collective = TRUE, verbose = FALSE)
nc |
An object of class |
var |
Variable name or id. |
collective |
use collective method to read and write. |
verbose |
If |
Default parallel access is individual for variables. Collective access allows coordination between simultaneous requests within a communicator.
Returns, invisibly, 0 or NetCDF error integer.
George Ostrouchov, Pragneshkumar Patel pragnesh@utk.edu, Wei-Chen Chen, and Drew Schmidt.
Programming with Big Data in R Website: http://r-pbd.org/
nc_open_par
, nc_create_par
,
ncdim_def
, ncvar_def
.
## Not run: ### Under command mode, run the demo with 2 processors by ### (Use Rscript.exe for windows system) mpiexec -np 2 Rscript -e "demo(ncwrite,'pbdNCDF4',ask=F,echo=F)" mpiexec -np 2 Rscript -e "demo(ncread,'pbdNCDF4',ask=F,echo=F)" ## End(Not run)