Changeset b060d3c


Ignore:
Timestamp:
09/28/18 12:51:14 (6 years ago)
Author:
Hal Finkel <hfinkel@…>
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)
Message:

add a test that can use SZ - run with -c -l

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GenericIOBenchmarkWrite.cxx

    r5d57155 rb060d3c  
    100100 
    101101  bool UseAOS = false; 
     102  bool UseLC = false; 
    102103  int a = 1; 
    103104  if (argc > 1 && string(argv[a]) == "-a") { 
     
    113114  } 
    114115 
     116  if (argc > 1 && string(argv[a]) == "-l") { 
     117    UseLC = true; 
     118    --argc; 
     119    ++a; 
     120  } 
     121 
     122 
    115123  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]); 
    117125    exit(-1); 
    118126  } 
     
    184192  std::fill(mask.begin(), mask.end(), 25); 
    185193 
     194  GenericIO::LossyCompressionInfo LCI; 
     195  if (UseLC) { 
     196    LCI.Mode = GenericIO::LossyCompressionInfo::LCModeRel; 
     197    LCI.RelErrThreshold = 1e-3; 
     198  } 
     199 
    186200  if (UseAOS) { 
    187201    GIO.addVariable("pos", pos, CoordFlagsX | CoordFlagsY | CoordFlagsZ | 
    188                                 GenericIO::VarHasExtraSpace); 
     202                                GenericIO::VarHasExtraSpace, LCI); 
    189203    GIO.addVariable("vel", vel, GenericIO::VarHasExtraSpace); 
    190204  } 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); 
    194208    GIO.addVariable("vx", vx, GenericIO::VarHasExtraSpace); 
    195209    GIO.addVariable("vy", vy, GenericIO::VarHasExtraSpace); 
Note: See TracChangeset for help on using the changeset viewer.