Changeset b060d3c
- Timestamp:
- 09/28/18 12:51:14 (6 years ago)
- Branches:
- master, pympi
- Children:
- e7b1f5b
- Parents:
- eeacdad
- git-author:
- Hal Finkel <hfinkel@…> (09/28/18 12:51:14)
- git-committer:
- Hal Finkel <hfinkel@…> (09/28/18 12:51:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GenericIOBenchmarkWrite.cxx
r5d57155 rb060d3c 100 100 101 101 bool UseAOS = false; 102 bool UseLC = false; 102 103 int a = 1; 103 104 if (argc > 1 && string(argv[a]) == "-a") { … … 113 114 } 114 115 116 if (argc > 1 && string(argv[a]) == "-l") { 117 UseLC = true; 118 --argc; 119 ++a; 120 } 121 122 115 123 if(argc != 4) { 116 fprintf(stderr,"USAGE: %s [-a] [-c] <mpiioName> <NP> <seed>\n", argv[0]);124 fprintf(stderr,"USAGE: %s [-a] [-c] [-l] <mpiioName> <NP> <seed>\n", argv[0]); 117 125 exit(-1); 118 126 } … … 184 192 std::fill(mask.begin(), mask.end(), 25); 185 193 194 GenericIO::LossyCompressionInfo LCI; 195 if (UseLC) { 196 LCI.Mode = GenericIO::LossyCompressionInfo::LCModeRel; 197 LCI.RelErrThreshold = 1e-3; 198 } 199 186 200 if (UseAOS) { 187 201 GIO.addVariable("pos", pos, CoordFlagsX | CoordFlagsY | CoordFlagsZ | 188 GenericIO::VarHasExtraSpace );202 GenericIO::VarHasExtraSpace, LCI); 189 203 GIO.addVariable("vel", vel, GenericIO::VarHasExtraSpace); 190 204 } else { 191 GIO.addVariable("x", xx, CoordFlagsX | GenericIO::VarHasExtraSpace );192 GIO.addVariable("y", yy, CoordFlagsY | GenericIO::VarHasExtraSpace );193 GIO.addVariable("z", zz, CoordFlagsZ | GenericIO::VarHasExtraSpace );205 GIO.addVariable("x", xx, CoordFlagsX | GenericIO::VarHasExtraSpace, LCI); 206 GIO.addVariable("y", yy, CoordFlagsY | GenericIO::VarHasExtraSpace, LCI); 207 GIO.addVariable("z", zz, CoordFlagsZ | GenericIO::VarHasExtraSpace, LCI); 194 208 GIO.addVariable("vx", vx, GenericIO::VarHasExtraSpace); 195 209 GIO.addVariable("vy", vy, GenericIO::VarHasExtraSpace);
Note: See TracChangeset
for help on using the changeset viewer.