Skip to content

Commit

Permalink
Merge Pull Request #7596 from crockatt/Trilinos/panzer-fix-evaluation…
Browse files Browse the repository at this point in the history
…-type-condition

Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Panzer: Fixing evaluation type conditionals in equation set gather registration.
PR Author: crockatt
  • Loading branch information
trilinos-autotester authored Jul 7, 2020
2 parents 0c9d16e + 441ba04 commit 6f7a53a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/panzer/disc-fe/src/Panzer_PhysicsBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,15 @@ buildAndRegisterGatherAndOrientationEvaluators(PHX::FieldManager<panzer::Traits>
// Loop over equation set template managers
vector< RCP<EquationSet_TemplateManager<panzer::Traits> > >::const_iterator
eq_set = m_equation_sets.begin();
int idx = 0;
for (;eq_set != m_equation_sets.end(); ++eq_set,++idx) {
if (m_active_evaluation_types[idx]) {
// Loop over evaluation types
EquationSet_TemplateManager<panzer::Traits> eqstm = *(*eq_set);
EquationSet_TemplateManager<panzer::Traits>::iterator eval_type =
eqstm.begin();
for (; eval_type != eqstm.end(); ++eval_type) {
for (;eq_set != m_equation_sets.end(); ++eq_set) {

// Loop over evaluation types
EquationSet_TemplateManager<panzer::Traits> eqstm = *(*eq_set);
EquationSet_TemplateManager<panzer::Traits>::iterator eval_type =
eqstm.begin();
int idx = 0;
for (; eval_type != eqstm.end(); ++eval_type,++idx) {
if (m_active_evaluation_types[idx]) {
const int di = eval_type->setDetailsIndex(this->getDetailsIndex());
eval_type->buildAndRegisterGatherAndOrientationEvaluators(fm, *m_field_lib, lof, user_data);
eval_type->setDetailsIndex(di);
Expand Down

0 comments on commit 6f7a53a

Please sign in to comment.