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 1291 by chrisfen, Wed Jun 23 20:48:08 2004 UTC vs.
Revision 1292 by chrisfen, Wed Jun 23 23:19:43 2004 UTC

# Line 109 | Line 109 | void SphereHarm::printShapesFileStart(char name[200],
109                  weights );
110   }
111  
112 < void SphereHarm::printShapesFileStart(char name[200], string particle,
112 > void SphereHarm::printShapesFileStart(char name[200], char particle[80],
113                                        double mass, double momInert[3][3]){
114    ofstream shapes(name);
115    shapes << particle << "\t" << mass << "\t" << momInert[0][0] << "\t"
116 <         << momInert[1][1] << "\t" << momInert[2][2] << "\n\n";
116 >         << momInert[1][1] << "\t" << momInert[2][2] << "\n";
117   }
118  
119   void SphereHarm::printToShapesFile(char name[200], int index){
# Line 185 | Line 185 | void SphereHarm::printToShapesFile(char name[200], int
185        }
186          
187        if (fabs(cm) > 0.01 * biggest)
188 <        shapes << l << "\t" << m << "\tcos\t" << cm << "\n";
188 >        shapes << l << "\t" << m << "\tcos\t\t" << cm << "\n";
189        if (fabs(sm) > 0.01 * biggest)
190 <        shapes << l << "\t" << m << "\tsin\t" << sm << "\n";
190 >        shapes << l << "\t" << m << "\tsin\t\t" << sm << "\n";
191      }
192    }
193    switch(index){
194      case 0:{
195 <      shapes << "\nend ContactFunctions\n";
195 >      shapes << "end ContactFunctions\n";
196      }; break;
197      case 1:{
198 <      shapes << "\nend RangeFunctions\n";
198 >      shapes << "end RangeFunctions\n";
199      }; break;
200      case 2:{
201 <      shapes << "\nend StrengthFunctions\n";
201 >      shapes << "end StrengthFunctions\n";
202      }; break;
203    }
204   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines