Skip to content

Commit

Permalink
Merge pull request #197 from alexanderrichards/mdc2fixes
Browse files Browse the repository at this point in the history
Modifying DER template for MDC2.
  • Loading branch information
alexanderrichards committed Feb 22, 2018
2 parents 6ceccf8 + ed04903 commit 4414649
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lzproduction/resources/bash/DER.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ MCTRUTH_OUTPUT_FILE=$1
DER_DIR=/cvmfs/lz.opensciencegrid.org/DER/release-{{ der_version }}
DER_LFN_DIR={{ der_lfn_outputdir }}


i_job=$((SEED-{{ seed }}))
SEED0={{ seed }}
date1=$((SEED0/100000+20190000))
time=0000
UNIXTIME=$(date -d "$date1 $time" +%s)
i_job=$((SEED-SEED0))
livetimeperjob={{ livetimeperjob }}
DT=$(awk "BEGIN {print $i_job*$livetimeperjob+0.5; exit}")
let DDT=`echo $DT | cut -d. -f 1`
UNIXTIME=$(({{ unixtime }}+DDT))
#UNIXTIME=$(({{ unixtime }}+DDT))

cd $DER_DIR
source $DER_DIR/DERenv.sh
Expand Down

0 comments on commit 4414649

Please sign in to comment.