Changeset 72ac664 for GenericIOBenchmarkWrite.cxx
- Timestamp:
- 08/26/16 19:28:29 (8 years ago)
- Branches:
- master, pympi
- Children:
- cda87e9
- Parents:
- 754e14c
- git-author:
- Hal Finkel <hfinkel@…> (08/26/16 19:28:29)
- git-committer:
- Hal Finkel <hfinkel@…> (08/26/16 19:28:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GenericIOBenchmarkWrite.cxx
rba0fbd1 r72ac664 64 64 MPI_Comm_size(MPI_COMM_WORLD, &commRanks); 65 65 66 int a = 1; 67 if (argc > 1 && string(argv[a]) == "-c") { 68 GenericIO::setDefaultShouldCompress(true); 69 --argc; 70 ++a; 71 } 72 66 73 if(argc != 4) { 67 fprintf(stderr,"USAGE: %s <mpiioName> <NP> <seed>\n", argv[0]);74 fprintf(stderr,"USAGE: %s [-c] <mpiioName> <NP> <seed>\n", argv[0]); 68 75 exit(-1); 69 76 } … … 71 78 GenericIO::setNaturalDefaultPartition(); 72 79 73 char *mpiioName = argv[ 1];74 size_t Np = atoi(argv[ 2])/commRanks;75 int seed = atoi(argv[ 3]);80 char *mpiioName = argv[a++]; 81 size_t Np = atoi(argv[a++])/commRanks; 82 int seed = atoi(argv[a++]); 76 83 77 84 srand48(seed + commRank);
Note: See TracChangeset
for help on using the changeset viewer.