<commit_before>//
//  NSolver::compute_refinement_indicators.cpp
//
//  Created by <NAME> on 15/8/9.
//  A work based on deal.II tutorial step-33.
//

#include <NSolver/solver/NSolver.h>

namespace NSFEMSolver
{
  using namespace dealii;


  template <int dim>
  void
  NSolver<dim>::compute_refinement_indicators()
  {
    NSVector      tmp_vector;
    tmp_vector.reinit (current_solution, true);
    tmp_vector = predictor;

    switch (parameters->refinement_indicator)
      {
      case Parameters::Refinement<dim>::Gradient:
      {

        EulerEquations<dim>::compute_refinement_indicators (dof_handler,
                                                            *mapping_ptr,
                                                            tmp_vector,
                                                            refinement_indicators,
                                                            parameters->component_mask);
        break;
      }
      case Parameters::Refinement<dim>::Kelly:
      {
        KellyErrorEstimator<dim>::estimate (dof_handler,
                                            QGauss<dim-1> (3),
                                            typename FunctionMap<dim>::type(),
                                            tmp_vector,
                                            refinement_indicators,
                                            parameters->component_mask);
        break;
      }
      case Parameters::Refinement<dim>::ErrorAndJump:
      {
        // Nothing needs to do here. The indicator vector is set during system assembling.
        break;
      }
      default:
      {
        Assert (false, ExcNotImplemented());
        break;
      }
      }

    return;
  }

#include "NSolver.inst"
}
<commit_msg>follow dealii update: replace FunctionMap with std::map<commit_after>//
//  NSolver::compute_refinement_indicators.cpp
//
//  Created by <NAME> on 15/8/9.
//  A work based on deal.II tutorial step-33.
//

#include <NSolver/solver/NSolver.h>

namespace NSFEMSolver
{
  using namespace dealii;


  template <int dim>
  void
  NSolver<dim>::compute_refinement_indicators()
  {
    NSVector      tmp_vector;
    tmp_vector.reinit (current_solution, true);
    tmp_vector = predictor;

    switch (parameters->refinement_indicator)
      {
      case Parameters::Refinement<dim>::Gradient:
      {

        EulerEquations<dim>::compute_refinement_indicators (dof_handler,
                                                            *mapping_ptr,
                                                            tmp_vector,
                                                            refinement_indicators,
                                                            parameters->component_mask);
        break;
      }
      case Parameters::Refinement<dim>::Kelly:
      {
        KellyErrorEstimator<dim>::estimate (dof_handler,
                                            QGauss<dim-1> (3),
                                            std::map<types::boundary_id, const Function<dim, typename NSVector::value_type> *>(),
                                            tmp_vector,
                                            refinement_indicators,
                                            parameters->component_mask);
        break;
      }
      case Parameters::Refinement<dim>::ErrorAndJump:
      {
        // Nothing needs to do here. The indicator vector is set during system assembling.
        break;
      }
      default:
      {
        Assert (false, ExcNotImplemented());
        break;
      }
      }

    return;
  }

#include "NSolver.inst"
}

{'fraction_non_alphanumeric': 0.08478802992518704, 'fraction_numerical': 0.004433361041839845, 'mean_word_length': 1.2718691000629327, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '817899', 'n_tokens_mistral': 883, 'n_tokens_neox': 845, 'n_words': 169}