IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39436


Ignore:
Timestamp:
Mar 6, 2016, 2:01:29 PM (10 years ago)
Author:
eugene
Message:

add option for manual uniquer

Location:
branches/eam_branches/ohana.20160226/src/relastro
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20160226/src/relastro/include/relastro.h

    r39432 r39436  
    259259int    REGION_HOST_ID;
    260260int    PARALLEL_REGIONS_MANUAL;
     261char  *MANUAL_UNIQUER;
    261262
    262263int          HOST_ID;
  • branches/eam_branches/ohana.20160226/src/relastro/src/args.c

    r39396 r39436  
    5151    remove_argument (N, &argc, argv);
    5252    RELASTRO_OP = OP_UPDATE_OFFSETS;
     53  }
     54
     55  // elements needed for parallel regions / parallel images
     56  MANUAL_UNIQUER = NULL;
     57  if ((N = get_argument (argc, argv, "-manual-uniquer"))) {
     58    remove_argument (N, &argc, argv);
     59    MANUAL_UNIQUER = strcreate (argv[N]);
     60    remove_argument (N, &argc, argv);
    5361  }
    5462
  • branches/eam_branches/ohana.20160226/src/relastro/src/load_catalogs.c

    r39396 r39436  
    142142  int TIME = time(NULL);
    143143  int PID = getpid();
    144   snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
     144
     145  if (PARALLEL_MANUAL && MANUAL_UNIQUER) {
     146    snprintf (uniquer, 12, "%11s", MANUAL_UNIQUER);
     147  } else {
     148    snprintf (uniquer, 12, "%05d.%05d", PID, TIME % 100000);
     149  }
    145150
    146151  // load the list of hosts
Note: See TracChangeset for help on using the changeset viewer.