ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/Plotting/Modules/CrossSectionReader.C
(Generate patch)

Comparing UserCode/cbrown/Development/Plotting/Modules/CrossSectionReader.C (file contents):
Revision 1.2 by buchmann, Tue Apr 10 13:44:59 2012 UTC vs.
Revision 1.3 by buchmann, Mon Apr 30 08:39:44 2012 UTC

# Line 34 | Line 34 | std::string sLine;
34   while(std::getline(inFile, sLine))
35   {
36          int init_m0 = sLine.find("m0", 0);
37 <        if(init_m0 == string::npos) continue;
37 >        if(init_m0 == (int)string::npos) continue;
38          
39          //file structure
40          //|(scale=1.0) m0=1000, m1/2=100, tanbeta=3, A0=0, sign(mu)=+ve| 0.224611 | 0.0101205 | 53.1719 | 3.5998e-06 | 0.00592 | 0.0386 | 0.024632 | 0.001203 | 66.1 | 2.3 |
41          //| Sub-processes | ng | ns | nn | ll | sb | ss | tb | bb | gg | sg |
42      
43          int m0=-1, m12=-1, tanb=-1;
44 +        tanb=-1;
45          float ng=-1,ns=-1,nn=-1,ll=-1,sb=-1,ss=-1,tb=-1,bb=-1,gg=-1,sg=-1,tngb=-1,a0=-1;
46          sscanf(sLine.c_str(), " |(scale=1.0) m0=%*d, m1/2=%*d, tanbeta=%f, A0=%f, sign(mu)=+ve| %f | %e | %e | %e | %e | %e | %e | %e | %e | %e |",
47             &tngb,&a0,&ng,&ns,&nn,&ll,&sb,&ss,&tb,&bb,&gg,&sg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines