File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ int dvode (BurnT& state, DvodeT& vstate)
8282 vstate.ewt (NumSpec+1 ) = vstate.rtol_enuc * std::abs (vstate.yh (NumSpec+1 ,1 )) + vstate.atol_enuc ;
8383 vstate.ewt (NumSpec+1 ) = 1 .0_rt / vstate.ewt (NumSpec+1 );
8484#ifdef PHOTOCHEMISTRY
85- for (int i = 1 ; i <= NumChemActiveRadGroups ; i+=MicrophysicsNumRadVarsPerGroup) {
85+ for (int i = 1 ; i <= NumChemBands ; i+=MicrophysicsNumRadVarsPerGroup) {
8686 int rad_n_index = NumSpec + 2 + (i-1 ) * MicrophysicsNumRadVarsPerGroup;
8787 vstate.ewt (rad_n_index) = vstate.rtol_rad_num * std::abs (vstate.yh (rad_n_index,1 )) + vstate.atol_rad_num ;
8888 for (int j = 2 ; j <= MicrophysicsNumRadVarsPerGroup; ++j){
@@ -165,7 +165,7 @@ int dvode (BurnT& state, DvodeT& vstate)
165165 vstate.ewt (NumSpec+1 ) = vstate.rtol_enuc * std::abs (vstate.yh (NumSpec+1 ,1 )) + vstate.atol_enuc ;
166166 vstate.ewt (NumSpec+1 ) = 1 .0_rt / vstate.ewt (NumSpec+1 );
167167#ifdef PHOTOCHEMISTRY
168- for (int i = 1 ; i <= NumChemActiveRadGroups ; i+=MicrophysicsNumRadVarsPerGroup) {
168+ for (int i = 1 ; i <= NumChemBands ; i+=MicrophysicsNumRadVarsPerGroup) {
169169 int rad_n_index = NumSpec + 2 + (i-1 ) * MicrophysicsNumRadVarsPerGroup;
170170 vstate.ewt (rad_n_index) = vstate.rtol_rad_num * std::abs (vstate.yh (rad_n_index,1 )) + vstate.atol_rad_num ;
171171 for (int j = 2 ; j <= MicrophysicsNumRadVarsPerGroup; ++j){
You can’t perform that action at this time.
0 commit comments