IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2023, 12:17:35 PM (4 years ago)
Author:
eugene
Message:

merge from eam_branches/ipp-20220316. fixes for more pendantic gcc; add opihi memory stats; string vector improvements; use named macros for fixed string lengths

Location:
trunk/Ohana
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/relastro/src

  • trunk/Ohana/src/relastro/src/ConfigInit.c

    r39926 r42389  
    6161  ScanConfig(config, "WHERE_B",                "%s",  0, WHERE_B);
    6262
    63   snprintf (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR);
     63  snprintf_nowarn (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR);
    6464
    6565  if (!ScanConfig (config, "SKY_DEPTH",         "%d",  0, &SKY_DEPTH)) SKY_DEPTH = 2;
    … …  
    7777
    7878  /* update master photcode table if not defined */
    79   snprintf (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR);
     79  snprintf_nowarn (CatdirPhotcodeFile, DVO_MAX_PATH, "%s/Photcodes.dat", CATDIR);
    8080  if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) {
    8181    fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile);
  • trunk/Ohana/src/relastro/src/FrameCorrection.c

    r38986 r42389  
    8080  static int version = 0;
    8181  char filename[1024];
    82   snprintf (filename, 1024, "%s/frame.%03d.corr.fits", CATDIR, version);
     82  snprintf_nowarn (filename, 1024, "%s/frame.%03d.corr.fits", CATDIR, version);
    8383  FrameCorrectionSetSave (filename, set);
    8484  version ++;
    … …  
    217217    static int version = 0;
    218218    char filename[1024];
    219     snprintf (filename, 1024, "%s/sh.%02d.dat", CATDIR, version);
     219    snprintf_nowarn (filename, 1024, "%s/sh.%02d.dat", CATDIR, version);
    220220    FILE *f = fopen (filename, "w");
    221221    myAssert (f, "oops");
    … …  
    519519    static int version = 0;
    520520    char filename[1024];
    521     snprintf (filename, 1024, "%s/map.%02d.dat", CATDIR, version);
     521    snprintf_nowarn (filename, 1024, "%s/map.%02d.dat", CATDIR, version);
    522522    FILE *f = fopen (filename, "w");
    523523    version ++;
  • trunk/Ohana/src/relastro/src/ICRF.c

    r39375 r42389  
    5656
    5757  char filename[1024];
    58   snprintf (filename, 1024, "%s/test.icrf.dat", CATDIR);
     58  snprintf_nowarn (filename, 1024, "%s/test.icrf.dat", CATDIR);
    5959  FILE *f = fopen (filename, "w");
    6060
  • trunk/Ohana/src/relastro/src/assign_images.c

    r39926 r42389  
    2525
    2626  char mapfile[DVO_MAX_PATH];
    27   snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
     27  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
    2828  AstromOffsetTable *table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE);
    2929
  • trunk/Ohana/src/relastro/src/bcatalog.c

    r39995 r42389  
    6464  if (VERBOSE2 && ExcludeBogus && (fbogus == NULL)) {
    6565    char name[1024];
    66     snprintf (name, 1024, "%s/bogus.%02d.dat", CATDIR, HOST_ID);
     66    snprintf_nowarn (name, 1024, "%s/bogus.%02d.dat", CATDIR, HOST_ID);
    6767    fbogus = fopen (name, "w");
    6868    if (!fbogus) {
    … …  
    533533  if (dumpit) {
    534534    char name[64];
    535     snprintf (name, 64, "cat.%05d.dump.dat", oldcatalog[0].catID);
     535    snprintf_nowarn (name, 64, "cat.%05d.dump.dat", oldcatalog[0].catID);
    536536    FILE *fdump = fopen (name, "w");
    537537    for (i = 0; i < Nkeep; i++) {
  • trunk/Ohana/src/relastro/src/launch_region_hosts.c

    r40415 r42389  
    6363    // subset images per host : CATDIR/Image.HOSTNAME.fits
    6464    char filename[1024];
    65     snprintf (filename, 1024, "%s/Image.%d.fits", CATDIR, host->hostID);
     65    snprintf_nowarn (filename, 1024, "%s/Image.%d.fits", CATDIR, host->hostID);
    6666    if (unlink (filename)) fprintf (stderr, "trouble clearing image %s\n", filename);
    6767
    … …  
    7171    if (host->astromTable) {
    7272      char mapname[1024];
    73       snprintf (mapname, 1024, "%s/AstroMap.%d.fits", CATDIR, host->hostID);
     73      snprintf_nowarn (mapname, 1024, "%s/AstroMap.%d.fits", CATDIR, host->hostID);
    7474
    7575      // write the image subset for this host
  • trunk/Ohana/src/relastro/src/load_images.c

    r39926 r42389  
    5656
    5757  char mapfile[DVO_MAX_PATH];
    58   snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
     58  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
    5959  table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE);
    6060
    … …  
    9696
    9797  char mapfile[DVO_MAX_PATH];
    98   snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
     98  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR);
    9999  AstromOffsetMapSave (table, mapfile);
    100100
  • trunk/Ohana/src/relastro/src/relastro_parallel_images.c

    r40415 r42389  
    4343
    4444  char mapfile[DVO_MAX_PATH];
    45   snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.%d.fits", CATDIR, REGION_HOST_ID);
     45  snprintf_nowarn (mapfile, DVO_MAX_PATH, "%s/AstroMap.%d.fits", CATDIR, REGION_HOST_ID);
    4646  AstromOffsetTable *table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE);
    4747
  • trunk/Ohana/src/relastro/src/share_images_pos.c

    r39457 r42389  
    3838  if (table) {
    3939    char mapname[1024];
    40     snprintf (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, REGION_HOST_ID);
     40    snprintf_nowarn (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, REGION_HOST_ID);
    4141   
    4242    // write the image subset for this host
    … …  
    113113
    114114    char mapname[1024];
    115     snprintf (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, regionHosts->hosts[i].hostID);
     115    snprintf_nowarn (mapname, 1024, "%s/AstroMapUpdate.%d.fits", CATDIR, regionHosts->hosts[i].hostID);
    116116   
    117117    AstromOffsetTable *table = AstromOffsetMapLoad (mapname, 100000, VERBOSE);
Note: See TracChangeset for help on using the changeset viewer.