IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 12, 2014, 3:55:38 PM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippScripts/scripts/sc_prepare_warp.pl

    r36966 r37242  
    1818
    1919# Hard coded values
    20 my $remote_root   = '/scratch3/watersc1/';  # Far side destination base location
     20# my $remote_root   = '/scratch3/watersc1/'; 
     21my $remote_root = '/lustre/scratch1/turquoise/watersc1/ps1/'; # Far side destination base location
     22$remote_root = '/scratch3/watersc1/';
    2123my $threads       = 2;                      # How many threads are we going to use?
    22 my $job_cost      = 70 / 60 / 60;           # Estimate of how long a job runs, in hours.
     24my $job_cost      = 110 / 60 / 60;          # Estimate of how long a job runs, in hours.
    2325my $proc_per_node = 24;                     # processors per node
    2426my $min_nodes     = 1;                      # smallest allocation to ask for
     
    2729my $max_time      = 8;                      # longest allocation to ask for
    2830my $remote_hostname= "LANL/Mustang";         # Name of the remote node.
    29 my @return_component_list = ("DBINFO.EXP", "PSWARP.CONFIG", "PSWARP.OUTPUT", "PSWARP.OUTPUT.MASK", "PSWARP.OUTPUT.VARIANCE", "PSWARP.OUTPUT.SOURCES","PSPHOT.PSF.SAVE","LOG.EXP","TRACE.EXP");
     31my @return_component_list = ("DBINFO.EXP", "PSWARP.CONFIG", "PSWARP.OUTPUT", "PSWARP.OUTPUT.MASK", "PSWARP.OUTPUT.VARIANCE", "PSWARP.OUTPUT.SOURCES","PSPHOT.PSF.SKY.SAVE","LOG.EXP");
    3032# Look for programs we need
    3133my $missing_tools;
     
    202204        $pswarp_command    .= " -threads 4 "; # -image_id ${image_id} -source_id ${source_id} ";
    203205        $pswarp_command    .= " -recipe PPSTATS WARPSTATS ";
    204         $pswarp_command    .= " -dumpconfig ${remote_outroot}.mdc -stats ${remote_outroot}.stats ";
     206        $pswarp_command    .= " -dumpconfig ${remote_outroot}.pswarp.mdc -stats ${remote_outroot}.stats ";
    205207
    206208#       print "$pswarp_command \n";
     
    218220        # Determine which output files need to be returned
    219221        foreach my $component(@return_component_list) {
    220             my $filename = $ipprc->filename($component,$ipp_outroot);
     222            my $filename = $ipprc->filename($component,$ipp_outroot,$skycell_id);
    221223            my ($ipp_disk, $remote_disk) = uri_to_outputs_for_return( $filename);
    222224            my $remote_outroot_dir = dirname($ipp_disk);
    223             print CONFIG " && mkdir -p ${remote_root}/tmp/${remote_outroot_dir} && ln -sf $remote_disk ${remote_root}/tmp/${ipp_disk} ";
     225            print CONFIG " && mkdir -p ${remote_root}/tmp/${remote_outroot_dir} && ln -sf $remote_disk ${remote_root}/tmp/${ipp_disk} && touch $remote_disk ";
    224226        }
    225227
     
    255257    $node_req = int(($node_need * $job_cost) / ($fill_factor * $time_req)) + 1;
    256258}
     259$time_req += 1; # Safety addition.
    257260
    258261open(COMMAND,  ">$disk_command") || &my_die("Couldn't open file? $disk_command",$remote_id,$PS_EXIT_SYS_ERROR);
Note: See TracChangeset for help on using the changeset viewer.