2: /*
3: Run with -google_refresh_token XXX to allow access to your Google Drive or else it will prompt you to enter log in information for Google Drive.
4: */
6: #include <petscsys.h>
8: int main(int argc,char **argv)
9: {
11: char access_token[512];
13: PetscInitialize(&argc,&argv,NULL,NULL);
15: PetscGoogleDriveRefresh(PETSC_COMM_WORLD,NULL,access_token,sizeof(access_token));
16: PetscGoogleDriveUpload(PETSC_COMM_WORLD,access_token,"googledriveupload.c");
17: PetscFinalize();
18: return 0;
19: }