Added pre-processor for 2D disc packs test/lbpm_disc_pp.cpp

This commit is contained in:
James McClure 2014-11-08 22:19:19 -05:00
parent 1f93d49662
commit 628e82d0e3

View File

@ -28,6 +28,7 @@ inline void ReadDiscPacking(int ndiscs, double *List_cx, double *List_cy, double
FILE *fid = fopen("DiscPack.in","rb");
INSIST(fid!=NULL,"Error opening DistPack.in");
//............................................
char * line = new char[100];
// We will read until a blank like or end-of-file is reached
int count = 0;
while ( !feof(fid) && fgets(line,100,fid)>0 ) {