Actual source code: boxupload.c

petsc-3.7.3 2016-08-01
Report Typos and Errors
  2: /*
  3:     Run with -box_refresh_token XXX to allow access to Box or else it will prompt you to enter log in information for Box.

  5:     Have not yet written the code to actually upload files

  7: */

  9: #include <petscsys.h>

 11: int main(int argc,char **argv)
 12: {
 14:   char           access_token[512],new_refresh_token[512];

 16:   PetscInitialize(&argc,&argv,NULL,NULL);if (ierr) return ierr;
 17:   PetscBoxRefresh(PETSC_COMM_WORLD,NULL,access_token,new_refresh_token,sizeof(access_token));
 18:   PetscFinalize();
 19:   return ierr;
 20: }