Skip to content

Commit

Permalink
Added in hooks to change EOS method for the future
Browse files Browse the repository at this point in the history
  • Loading branch information
jrenaud90 committed Nov 26, 2024
1 parent 7f1628f commit 55b4987
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 127 deletions.
94 changes: 34 additions & 60 deletions Benchmarks & Performance/RadialSolver/RadialSolver Benchmarks.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions TidalPy/Material/eos/methods/__init__.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from TidalPy.Material.eos.methods.interpolate cimport EOS_INTERPOLATE_METHOD_INT, preeval_interpolate, InterpolateEOSInput
2 changes: 2 additions & 0 deletions TidalPy/Material/eos/methods/interpolate.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ from libcpp cimport bool as cpp_bool

from TidalPy.Material.eos.ode cimport EOS_ODEInput

cdef int EOS_INTERPOLATE_METHOD_INT = 0

cdef struct InterpolateEOSInput:
size_t num_slices
double* radius_array_ptr
Expand Down
7 changes: 4 additions & 3 deletions TidalPy/RadialSolver/solver.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ cdef void cf_radial_solver(
double planet_bulk_density,
size_t num_layers,
int* layer_types_ptr,
bint* is_static_by_layer_ptr,
bint* is_incompressible_by_layer_ptr,
bint* is_static_bylayer_ptr,
bint* is_incompressible_bylayer_ptr,
double surface_pressure,
int degree_l,
size_t num_bc_models,
Expand All @@ -29,13 +29,14 @@ cdef void cf_radial_solver(
int integration_method_int,
double integration_rtol,
double integration_atol,
cpp_bool scale_rtols_by_layer_type,
cpp_bool scale_rtols_bylayer_type,
size_t max_num_steps,
size_t expected_size,
size_t max_ram_MB,
double max_step,
cpp_bool nondimensionalize,
cpp_bool use_prop_matrix,
int* eos_integration_method_int_bylayer_ptr,
int eos_integration_method,
double eos_rtol,
double eos_atol,
Expand Down
Loading

0 comments on commit 55b4987

Please sign in to comment.