IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40386 for trunk


Ignore:
Timestamp:
Apr 9, 2018, 8:46:51 AM (8 years ago)
Author:
eugene
Message:

add option to skip parallel groups when updating database

Location:
trunk/Ohana/src/relphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/include/relphot.h

    r40291 r40386  
    294294int    PARALLEL_SERIAL;
    295295char  *MANUAL_UNIQUER;
     296
     297int    SKIP_PARALLEL_GROUPS;
    296298
    297299int    PARALLEL_REGIONS_MANUAL;
  • trunk/Ohana/src/relphot/src/args.c

    r40291 r40386  
    134134    PARALLEL = TRUE; // -parallel-serial implies -parallel
    135135    PARALLEL_SERIAL = TRUE;
     136    remove_argument (N, &argc, argv);
     137  }
     138  SKIP_PARALLEL_GROUPS = 0;
     139  if ((N = get_argument (argc, argv, "-skip-parallel-groups"))) {
     140    remove_argument (N, &argc, argv);
     141    SKIP_PARALLEL_GROUPS = atoi(argv[N]);
    136142    remove_argument (N, &argc, argv);
    137143  }
     
    549555  PARALLEL_MANUAL = FALSE;
    550556  PARALLEL_SERIAL = FALSE;
     557  SKIP_PARALLEL_GROUPS = 0;
    551558
    552559  HOST_ID = 0;
  • trunk/Ohana/src/relphot/src/reload_catalogs.c

    r40291 r40386  
    180180  for (i = 0; i < Ngroups; i++) {
    181181    // update only a group of unique machines at a time
     182    if (i < SKIP_PARALLEL_GROUPS) continue;
    182183    reload_catalog_parallel_group (&groups[i], sky, imageFile);
    183184  }
Note: See TracChangeset for help on using the changeset viewer.