--- trunk/SHAPES/SphereHarm.cpp 2004/06/23 22:43:54 1291 +++ trunk/SHAPES/SphereHarm.cpp 2004/06/23 23:19:43 1292 @@ -109,11 +109,11 @@ void SphereHarm::printShapesFileStart(char name[200], weights ); } -void SphereHarm::printShapesFileStart(char name[200], string particle, +void SphereHarm::printShapesFileStart(char name[200], char particle[80], double mass, double momInert[3][3]){ ofstream shapes(name); shapes << particle << "\t" << mass << "\t" << momInert[0][0] << "\t" - << momInert[1][1] << "\t" << momInert[2][2] << "\n\n"; + << momInert[1][1] << "\t" << momInert[2][2] << "\n"; } void SphereHarm::printToShapesFile(char name[200], int index){ @@ -185,20 +185,20 @@ void SphereHarm::printToShapesFile(char name[200], int } if (fabs(cm) > 0.01 * biggest) - shapes << l << "\t" << m << "\tcos\t" << cm << "\n"; + shapes << l << "\t" << m << "\tcos\t\t" << cm << "\n"; if (fabs(sm) > 0.01 * biggest) - shapes << l << "\t" << m << "\tsin\t" << sm << "\n"; + shapes << l << "\t" << m << "\tsin\t\t" << sm << "\n"; } } switch(index){ case 0:{ - shapes << "\nend ContactFunctions\n"; + shapes << "end ContactFunctions\n"; }; break; case 1:{ - shapes << "\nend RangeFunctions\n"; + shapes << "end RangeFunctions\n"; }; break; case 2:{ - shapes << "\nend StrengthFunctions\n"; + shapes << "end StrengthFunctions\n"; }; break; } }