14.07.2013 Views

X - UWSpace - University of Waterloo

X - UWSpace - University of Waterloo

X - UWSpace - University of Waterloo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TERMINATE :<br />

..,. Free up the problem as allocaced by CPXcreateprob ....<br />

return ;<br />

1<br />

/* Record program start time '/<br />

getcime<strong>of</strong>dayi&tvl, (struct tirnezone*) 0) ;<br />

idt = (double) (tvl-tisec) ~OCOOOO - tvl.tv,usec;<br />

ptid = pvmjarent ( ;<br />

Record the idle time to receive the initial data '/<br />

gettime<strong>of</strong>day(&tvl, [struct cimezone')O) ;<br />

bufid = pvm-recv iptid, lil) : 1' Aeceive data */<br />

rdtl = myseconds (rdtl) ;<br />

fp = fopen(w/u:hjpark/phdthesFs~chrisjinn~utw,mwa~;<br />

fprintf(fp, l Xeceiving Set up Data 'lime : 08f\nn. rdtlil000000):<br />

fclose( fp) ;<br />

buf id = pv-upkinc (&nb-subs, i, I) ; :* Unpack data '/<br />

if (bufid < 0)<br />

fp = f~pen!~~u/hjpark/phdtkesis,chrisjin.out", *aw) ;<br />

fprintf(fp, 'ERROR in unpacking nb-subs\nml ;<br />

fclose(fp1 ;<br />

1<br />

C fp = fopen~";u/hjpark/phdthesis/ctuisjin~out*,"a"l;<br />

fprintf(fp, 'ERSOR in unpacking subtype\nm);<br />

fclose ( fp) ;<br />

1<br />

gettine<strong>of</strong>day(&tvi, (struct cinezone* 10) ;<br />

Sufid = ptm-rem (pcid, 1) ;<br />

;* Receive initial problem data 'I'<br />

rc=l = myseconds(rdtl) ;<br />

fp = :cpen('. u/hjpark:phdthesis, chrisjin.outm, "am) ;<br />

fprincftfp, ' Receivfng Set ~p Data Time : %BÉ\n''. rdtli10000001;<br />

fclase(fp) ;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!