ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/SHAPES/SphereHarm.cpp
(Generate patch)

Comparing trunk/SHAPES/SphereHarm.cpp (file contents):
Revision 1309 by chrisfen, Fri Jun 25 20:10:53 2004 UTC vs.
Revision 1313 by chrisfen, Sat Jun 26 15:40:49 2004 UTC

# Line 119 | Line 119 | void SphereHarm::printToShapesFile(char name[200], int
119    shapes << "end ShapeInfo\n";
120   }
121  
122 < void SphereHarm::printToShapesFile(char name[200], int index){
122 > void SphereHarm::printToShapesFile(char name[200], int index, double tolVal){
123    ofstream shapes(name, ios::app);
124    
125    biggest = 0.0;
# Line 158 | Line 158 | void SphereHarm::printToShapesFile(char name[200], int
158                                - icoeffs[dummy2]);
159        }
160          
161 <      if (fabs(cm) > 0.01 * biggest) nfuncs++;
162 <      if (fabs(sm) > 0.01 * biggest) nfuncs++;
161 >      if (fabs(cm) > tolVal * biggest) nfuncs++;
162 >      if (fabs(sm) > tolVal * biggest) nfuncs++;
163      }
164    }
165      
# Line 193 | Line 193 | void SphereHarm::printToShapesFile(char name[200], int
193                                - icoeffs[dummy2]);
194        }
195          
196 <      if (fabs(cm) > 0.01 * biggest)
196 >      if (fabs(cm) > tolVal * biggest)
197          shapes << l << "\t" << m << "\tcos\t\t" << cm << "\n";
198 <      if (fabs(sm) > 0.01 * biggest)
198 >      if (fabs(sm) > tolVal * biggest)
199          shapes << l << "\t" << m << "\tsin\t\t" << sm << "\n";
200      }
201    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines