| # | Line 112 | Line 112 | void SphereHarm::printShapesFileStart(char name[200], | |
|---|---|---|
| 112 | void SphereHarm::printShapesFileStart(char name[200], char particle[80], | |
| 113 | double mass, double momInert[3][3]){ | |
| 114 | ofstream shapes(name); | |
| 115 | + | shapes << "begin ShapeInfo\n"; |
| 116 | + | shapes << "#name\t\tmass\tI_xx\tI_yy\tI_zz\n"; |
| 117 | shapes << particle << "\t" << mass << "\t" << momInert[0][0] << "\t" | |
| 118 | << momInert[1][1] << "\t" << momInert[2][2] << "\n"; | |
| 119 | + | shapes << "end ShapeInfo\n"; |
| 120 | } | |
| 121 | ||
| 122 | void SphereHarm::printToShapesFile(char name[200], int index){ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |