| 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){ |
| 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 |
|
} |