Skip to content

Commit

Permalink
Merge pull request #189 from VirtualPlanetaryLaboratory/dev
Browse files Browse the repository at this point in the history
Fixed output for OrbPeriod and MeanMotion
  • Loading branch information
RoryBarnes authored Jul 28, 2021
2 parents 75b62c6 + 4ee3924 commit f4688fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ void WriteOrbMeanMotion(BODY *body, CONTROL *control, OUTPUT *output,
*dTmp *= output->dNeg;
strcpy(cUnit, output->cNeg);
} else {
*dTmp /= fdUnitsTime(units->iTime);
*dTmp *= fdUnitsTime(units->iTime);
fsUnitsRate(units->iTime, cUnit);
}
}
Expand Down Expand Up @@ -735,7 +735,7 @@ void WriteOrbPeriod(BODY *body, CONTROL *control, OUTPUT *output,
*dTmp *= output->dNeg;
strcpy(cUnit, output->cNeg);
} else {
*dTmp *= fdUnitsTime(units->iTime);
*dTmp /= fdUnitsTime(units->iTime);
fsUnitsTime(units->iTime, cUnit);
}
}
Expand Down

0 comments on commit f4688fd

Please sign in to comment.