Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Added missing values to swifter2swiftest conversion
  • Loading branch information
daminton committed Feb 25, 2022
1 parent 0c86301 commit 0d05896
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/swiftest/swiftest/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,11 @@ def swifter2swiftest(swifter_param, plname="", tpname="", cbname="", conversion_
elif cbrad_type == 2:
cbrad = input("Enter radius of central body in simulation Distance Units: ")
cbrad = real2float(cbrad.strip())

cbname = conversion_questions.get('CNAME', None)
if not cbname:
print("Set central body name:")
cbname = input("> ")

print(f'Writing out new CB file: {swiftest_param["CB_IN"]}')
# Write out new central body file
try:
Expand All @@ -1463,6 +1467,7 @@ def swifter2swiftest(swifter_param, plname="", tpname="", cbname="", conversion_
swiftest_param.pop('C', None)
swiftest_param.pop('J2', None)
swiftest_param.pop('J4', None)
swiftest_param['IN_FORM'] = "XV"

swiftest_param['DISCARD_OUT'] = conversion_questions.get('DISCARD_OUT', '')
if not swiftest_param['DISCARD_OUT']:
Expand Down

0 comments on commit 0d05896

Please sign in to comment.