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

Commit

Permalink
fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anand43 committed Feb 10, 2024
1 parent c1ea53d commit 99ca5f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ module function swiftest_io_netcdf_read_frame_system(self, nc, param) result(ier
if (status == NF90_NOERR) then
call netcdf_io_check( nf90_get_var(nc%id, nc%rotphase_varid, rtemp, start=[tslot]), &
"netcdf_io_read_frame_system nf90_getvar rotphase_varid" )
cb%rotphase = rtemp * DEG2RAD
cb%rotphase = rtemp(1) * DEG2RAD
else
cb%rotphase = 0.0_DP
end if
Expand Down
6 changes: 5 additions & 1 deletion swiftest/simulation_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,8 @@ def add_body(self,
Ip: List[float] | npt.NDArray[np.float_] | None=None,
J2: float | List[float] | npt.NDArray[np.float_] | None=None,
J4: float | List[float] | npt.NDArray[np.float_] | None=None,
c_lm: List[float] | List[npt.NDArray[np.float_]] | npt.NDArray[np.float_] | None = None
c_lm: List[float] | List[npt.NDArray[np.float_]] | npt.NDArray[np.float_] | None = None,
rotphase: float | List[float] | npt.NDArray[np.float_] | None=None
) -> None:
"""
Adds a body (test particle or massive body) to the internal DataSet given a set up 6 vectors (orbital elements
Expand Down Expand Up @@ -2465,6 +2466,8 @@ def add_body(self,
Rotation rate vectors if these are massive bodies with rotation enabled.
Ip : (3) or (n,3) array-like of float, optional
Principal axes moments of inertia vectors if these are massive bodies with rotation enabled.
rotphase : float, optional
rotation phase angle of the central body in degrees
Returns
-------
Expand Down Expand Up @@ -2569,6 +2572,7 @@ def input_to_clm_array(val, n):
vh,nbodies = input_to_array_3d(vh,nbodies)
rot,nbodies = input_to_array_3d(rot,nbodies)
Ip,nbodies = input_to_array_3d(Ip,nbodies)
rotphase, nbodies = input_to_array(rotphase, "f", nbodies)

c_lm, nbodies = input_to_clm_array(c_lm, nbodies)

Expand Down

0 comments on commit 99ca5f4

Please sign in to comment.