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
Fixed plid in example
  • Loading branch information
daminton committed Jul 31, 2021
1 parent c2ca5ce commit 8f771a1
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 37 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
plfile = FortranFile(swiftest_pl, 'w')
plfile.write_record(npl)

plfile.write_record(plid1)
plfile.write_record(np.array([plid1, plid2]))
plfile.write_record(np.vstack([p_pl1[0],p_pl2[0]]))
plfile.write_record(np.vstack([p_pl1[1],p_pl2[1]]))
plfile.write_record(np.vstack([p_pl1[2],p_pl2[2]]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DT 0.0006844626967830253
CB_IN cb.swiftest.in
PL_IN pl.swiftest.in
TP_IN tp.swiftest.in
IN_TYPE REAL8
IN_TYPE ASCII
ISTEP_OUT 1
ISTEP_DUMP 1
BIN_OUT bin.swiftest.dat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
3 ! Planet input file generated using init_cond.py
1 39.476926408897625196
1 39.47692640889762629
0.0 0.0 0.0
0.0 0.0 0.0
2 0.00012002693582795244940133 0.010044724833237892
Expand Down
Binary file not shown.
Binary file not shown.
5 changes: 2 additions & 3 deletions python/swiftest/tests/bin2xr/swiftest/bin2xr_swiftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import swiftest
import swiftest.io as swio
param_file = "param.swiftest.in"
sim = swiftest.Simulation(param_file="param.swiftest.in")
ds = swio.swiftest2xr(sim.param)
sim.bin2xr()
sim.ds
62 changes: 31 additions & 31 deletions python/swiftest/tests/bin2xr/swiftest/param.swiftest.in
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
! VERSION Swiftest parameter file converted from Swift
BIG_DISCARD NO
BIN_OUT bin.dat
CB_IN cb.swiftest.in
CHK_CLOSE YES
CHK_QMIN 0.00468
CHK_QMIN_COORD HELIO
CHK_QMIN_RANGE 4.68e-03 100.0
CHK_RMAX 100.0
CHK_RMIN 0.00468
DT 5.0
DU2M 149597870700.0
ENC_OUT enc.dat
ENERGY NO
EXTRA_FORCE NO
FRAGMENTATION NO
GR NO
ISTEP_DUMP 7305000
ISTEP_OUT 7305000
MU2KG 1.988409870698051e+30
OUT_FORM EL
OUT_STAT UNKNOWN
PL_IN pl.swiftest.in
ROTATION NO
T0 0.0
TIDES NO
TP_IN tp.swiftest.in
TSTOP 365250000000.0
TU2S 86400
YARKOVSKY NO
YORP NO
! Swiftest input file generated using init_cond.py
T0 0
TSTOP 0.15
DT 0.0006844626967830253
CB_IN cb.swiftest.in
PL_IN pl.swiftest.in
TP_IN tp.swiftest.in
IN_TYPE REAL8
ISTEP_OUT 1
ISTEP_DUMP 1
BIN_OUT bin.swiftest.dat
OUT_TYPE REAL8
OUT_FORM XV
OUT_STAT REPLACE
CHK_CLOSE yes
CHK_RMIN 0.004650467260962157
CHK_RMAX 1000.0
CHK_EJECT 1000.0
CHK_QMIN 0.004650467260962157
CHK_QMIN_COORD HELIO
CHK_QMIN_RANGE 0.004650467260962157 1000.0
ENC_OUT enc.swiftest.dat
EXTRA_FORCE no
BIG_DISCARD no
ROTATION no
GR no
MU2KG 1.988409870698051e+30
DU2M 149597870700.0
TU2S 31557600.0
RHILL_PRESENT yes
MTINY 1e-12
Binary file modified python/swiftest/tests/bin2xr/swiftest/pl.swiftest.in
Binary file not shown.
Binary file modified python/swiftest/tests/bin2xr/swiftest/tp.swiftest.in
Binary file not shown.

0 comments on commit 8f771a1

Please sign in to comment.