Skip to content

Commit 9be154d

Browse files
committed
get rid of the wrapper around step_rate_gauss_seidel
1 parent 9634072 commit 9be154d

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

src/clib/fortran_func_wrappers.hpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -591,27 +591,6 @@ inline void scale_fields_g(
591591

592592
}
593593

594-
/// Uses one linearly implicit Gauss-Seidel sweep of a backward-Euler time
595-
/// integrator to advance the rate equations by one (sub-)cycle (dtit).
596-
inline void step_rate_g(
597-
double* dtit, IndexRange idx_range, gr_mask_type anydust, double* h2dust,
598-
double* rhoH, double* dedot_prev, double* HIdot_prev,
599-
gr_mask_type* itmask, gr_mask_type* itmask_metal, int imetal,
600-
chemistry_data* my_chemistry, grackle_field_data* my_fields,
601-
photo_rate_storage my_uvb_rates,
602-
grackle::impl::GrainSpeciesCollection grain_growth_rates,
603-
grackle::impl::SpeciesCollection species_tmpdens,
604-
grackle::impl::CollisionalRxnRateCollection kcr_buf,
605-
grackle::impl::PhotoRxnRateCollection kshield_buf
606-
) {
607-
grackle::impl::step_rate_gauss_seidel(
608-
dtit, anydust, h2dust, rhoH, dedot_prev, HIdot_prev, itmask, itmask_metal,
609-
my_chemistry, my_fields, my_uvb_rates, idx_range, grain_growth_rates,
610-
species_tmpdens, kcr_buf, kshield_buf
611-
);
612-
}
613-
614-
615594
} // namespace grackle::impl::fortran_wrapper
616595

617596
#endif /* FORTRAN_FUNC_WRAPPERS_HPP */

src/clib/solve_rate_cool_g-cpp.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,12 +883,12 @@ int solve_rate_cool_g(
883883
// Solve rate equations with one linearly implicit Gauss-Seidel
884884
// sweep of a backward Euler method (for all cells specified by
885885
// itmask_gs)
886-
f_wrap::step_rate_g(
886+
grackle::impl::step_rate_gauss_seidel(
887887
dtit.data(), idx_range, anydust, spsolvbuf.h2dust, rhoH.data(),
888888
spsolvbuf.dedot_prev, spsolvbuf.HIdot_prev, spsolvbuf.itmask_gs,
889-
itmask_metal.data(), imetal, my_chemistry, my_fields,
890-
*my_uvb_rates, spsolvbuf.grain_growth_rates,
891-
spsolvbuf.species_tmpdens, spsolvbuf.kcr_buf, spsolvbuf.kshield_buf
889+
itmask_metal.data(), my_chemistry, my_fields, *my_uvb_rates,
890+
spsolvbuf.grain_growth_rates, spsolvbuf.species_tmpdens,
891+
spsolvbuf.kcr_buf, spsolvbuf.kshield_buf
892892
);
893893

894894
// Solve rate equations with one linearly implicit Gauss-Seidel

src/clib/step_rate_gauss_seidel.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ namespace grackle::impl {
3232
/// Uses one linearly implicit Gauss-Seidel sweep of a backward-Euler time
3333
/// integrator to advance the rate equations by one (sub-)cycle (dtit).
3434
inline void step_rate_gauss_seidel(
35-
double* dtit, gr_mask_type anydust, double* h2dust, double* rhoH,
36-
double* dedot_prev, double* HIdot_prev, gr_mask_type* itmask,
35+
double* dtit, IndexRange idx_range, gr_mask_type anydust, double* h2dust,
36+
double* rhoH, double* dedot_prev, double* HIdot_prev, gr_mask_type* itmask,
3737
gr_mask_type* itmask_metal, chemistry_data* my_chemistry,
3838
grackle_field_data* my_fields, photo_rate_storage my_uvb_rates,
39-
IndexRange idx_range,
4039
grackle::impl::GrainSpeciesCollection grain_growth_rates,
4140
grackle::impl::SpeciesCollection species_tmpdens,
4241
grackle::impl::CollisionalRxnRateCollection kcol_buf,

0 commit comments

Comments
 (0)