Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Jun 7, 2024
1 parent 93b3e2b commit fe16019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kep3_devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- cmake >=3.18
- boost-cpp >=1.73
- fmt
- heyoka =3.*
- heyoka_devel =5*
- spdlog
- xtensor
- xtensor-blas
Expand Down
4 changes: 2 additions & 2 deletions src/udpla/vsop2013.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ vsop2013::vsop2013(std::string pl_name, double thresh)
// NOTE: we use (tm - 0.5) / 365250 as time coordinate because:
// - VSOP2013 counts time from J2000 and not MJD2000 (they differ by 12 hours),
// - VSOP2013 measures time in thousands of Julian years.
auto v_ex = heyoka::model::vsop2013_cartesian_icrf(pl_index, heyoka::kw::time = (tm - 0.5) / 365250.,
auto v_ex = heyoka::model::vsop2013_cartesian_icrf(pl_index, heyoka::kw::time_expr = (tm - 0.5) / 365250.,
heyoka::kw::thresh = thresh);

// Create the llvm_state and add the compiled function.
heyoka::llvm_state s;
heyoka::add_cfunc<double>(s, "eval_f", v_ex);
heyoka::add_cfunc<double>(s, "eval_f", v_ex, {tm});
s.compile();

// Add the compiled state to the cache.
Expand Down

0 comments on commit fe16019

Please sign in to comment.