Changeset 17350 for trunk/FACT++/src


Ignore:
Timestamp:
11/23/13 13:05:32 (11 years ago)
Author:
tbretz
Message:
Adapted the resource type to the zofits argument types
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fadctrl.cc

    r17244 r17350  
    20262026        // --------- Setup compression of FITS files -----------
    20272027        if (conf.Has("zfits.num-threads"))
    2028             zofits::DefaultNumThreads(conf.Get<int16_t>("zfits.num-threads"));
     2028            zofits::DefaultNumThreads(conf.Get<int32_t>("zfits.num-threads"));
    20292029        if (conf.Has("zfits.max-mem"))
    2030             zofits::DefaultMaxMemory(conf.Get<uint16_t>("zfits.max-mem")*1000);
     2030            zofits::DefaultMaxMemory(conf.Get<uint32_t>("zfits.max-mem")*1000);
    20312031        if (conf.Has("zfits.num-tiles"))
    2032             zofits::DefaultMaxNumTiles(conf.Get<uint16_t>("zfits.num-tiles"));
     2032            zofits::DefaultMaxNumTiles(conf.Get<uint32_t>("zfits.num-tiles"));
    20332033        if (conf.Has("zfits.num-rows"))
    2034             zofits::DefaultNumRowsPerTile(conf.Get<uint16_t>("zfits.num-rows"));
     2034            zofits::DefaultNumRowsPerTile(conf.Get<uint32_t>("zfits.num-rows"));
    20352035
    20362036        // ---------- Setup event builder ---------
     
    22282228    po::options_description zfits("FITS compression options");
    22292229    zfits.add_options()
    2230         ("zfits.num-threads", var<int16_t>(),  "Number of threads to spawn writing compressed FITS files")
    2231         ("zfits.max-mem",     var<uint16_t>(), "Maximum amount of memory to be allocated by FITS compression in MB")
    2232         ("zfits.num-tiles",   var<uint16_t>(), "Maximum number of tiles in the catalog")
    2233         ("zfits.num-rows",    var<uint16_t>(), "Maximum number of rows per tile")
     2230        ("zfits.num-threads", var<int32_t>(),  "Number of threads to spawn writing compressed FITS files")
     2231        ("zfits.max-mem",     var<uint32_t>(), "Maximum amount of memory to be allocated by FITS compression in MB")
     2232        ("zfits.num-tiles",   var<uint32_t>(), "Maximum number of tiles in the catalog")
     2233        ("zfits.num-rows",    var<uint32_t>(), "Maximum number of rows per tile")
    22342234        ;
    22352235
Note: See TracChangeset for help on using the changeset viewer.