petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscBoxUpload

Loads a file to the Box Drive

Synopsis

PetscErrorCode PetscBoxUpload(MPI_Comm comm,const char access_token[],const char filename[])
This routine has not yet been written; it is just copied from Google Drive Many br

Not collective, only the first process in the MPI_Comm uploads the file Many br

Input Parameters

comm - MPI communicator Many br
access_token - obtained with PetscBoxRefresh(), pass NULL to have PETSc generate one Many br
filename - file to upload; if you upload multiple times it will have different names each time on Box Drive Many br

Options Database

-box_refresh_token XXX - Many brUsage Patterns: Many brWith PETSc option -box_refresh_token XXX given Many brPetscBoxUpload(comm,NULL,filename); will upload file with no user interaction Many br

Without PETSc option -box_refresh_token XXX given Many brPetscBoxUpload(comm,NULL,filename); for first use will prompt user to authorize access to Box Drive with their processor Many br

With PETSc option -box_refresh_token XXX given Many brPetscBoxRefresh(comm,NULL,access_token,sizeof(access_token)); Many brPetscBoxUpload(comm,access_token,filename); Many br

With refresh token entered in some way by the user Many brPetscBoxRefresh(comm,refresh_token,access_token,sizeof(access_token)); Many brPetscBoxUpload(comm,access_token,filename); Many br

PetscBoxAuthorize(comm,access_token,refresh_token,sizeof(access_token)); Many brPetscBoxUpload(comm,access_token,filename); Many br

Many br

See Also

PetscURLShorten(), PetscBoxAuthorize(), PetscBoxRefresh()

Level:intermediate
Location:
src/sys/webclient/box.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages