Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename dual_t in pynucastro networks #1619

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions networks/CNO_extras/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/ECSN/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/He-C-Fe-group/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/ase/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/ignition_reaclib/C-burn-simple/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/ignition_reaclib/URCA-medium/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/ignition_reaclib/URCA-simple/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/nova/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/nova2/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/partition_test/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/sn160/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/subch_base/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
6 changes: 3 additions & 3 deletions networks/subch_simple/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ void evaluate_rates(const burn_t& state, T& rate_eval) {

// Calculate Reaclib rates

using dual_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
dual_t temp = state.T;
using number_t = std::conditional_t<do_T_derivatives, autodiff::dual, amrex::Real>;
number_t temp = state.T;
if constexpr (do_T_derivatives) {
// seed the dual number for temperature before calculating anything with it
autodiff::seed(temp);
}
plasma_state_t<dual_t> pstate{};
plasma_state_t<number_t> pstate{};
fill_plasma_state(pstate, temp, state.rho, Y);

tf_t tfactors = evaluate_tfactors(state.T);
Expand Down
Loading