<commit_before>//-----------------------  mapping_collection.cc  ---------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 2003, 2006 by the deal.II authors
//
//    This file is subject to QPL and may not be  distributed
//    without copyright and license information. Please refer
//    to the file deal.II/doc/license.html for the  text  and
//    further information on this license.
//
//-----------------------  mapping_collection.cc  ---------------------------

#include <base/memory_consumption.h>
#include <fe/mapping_collection.h>


namespace hp
{

  template <int dim>
  MappingCollection<dim>::MappingCollection ()
  {}


  
  template <int dim>
  MappingCollection<dim>::
  MappingCollection (const Mapping<dim> &mapping)
  {
    mappings
      .push_back (boost::shared_ptr<const Mapping<dim> >(mapping.clone()));
  }



  template <int dim>
  MappingCollection<dim>::
  MappingCollection (const MappingCollection<dim> &mapping_collection)
                  :
                  Subscriptor (),
                                                   // copy the array
                                                   // of shared
                                                   // pointers. nothing
                                                   // bad should
                                                   // happen -- they
                                                   // simply all point
                                                   // to the same
                                                   // objects, and the
                                                   // last one to die
                                                   // will delete the
                                                   // mappings
                  mappings (mapping_collection.mappings)
  {}
  
  

  template <int dim>
  unsigned int
  MappingCollection<dim>::memory_consumption () const
  {
    return (sizeof(*this) +
	    MemoryConsumption::memory_consumption (mappings));
  }

  

  template <int dim>
  void
  MappingCollection<dim>::push_back (const Mapping<dim> &new_mapping)
  {
    mappings
      .push_back (boost::shared_ptr<const Mapping<dim> >(new_mapping.clone()));
  }

//---------------------------------------------------------------------------


  template <int dim> MappingCollection<dim>
  StaticMappingQ1<dim>::mapping_collection(::StaticMappingQ1<dim>::mapping);

// explicit instantiations
  template class MappingCollection<deal_II_dimension>;
  template struct StaticMappingQ1<deal_II_dimension>;
  
}<commit_msg>Use the correct syntax to initialize a static member variable.<commit_after>//-----------------------  mapping_collection.cc  ---------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 2003, 2006 by the deal.II authors
//
//    This file is subject to QPL and may not be  distributed
//    without copyright and license information. Please refer
//    to the file deal.II/doc/license.html for the  text  and
//    further information on this license.
//
//-----------------------  mapping_collection.cc  ---------------------------

#include <base/memory_consumption.h>
#include <fe/mapping_collection.h>


namespace hp
{

  template <int dim>
  MappingCollection<dim>::MappingCollection ()
  {}


  
  template <int dim>
  MappingCollection<dim>::
  MappingCollection (const Mapping<dim> &mapping)
  {
    mappings
      .push_back (boost::shared_ptr<const Mapping<dim> >(mapping.clone()));
  }



  template <int dim>
  MappingCollection<dim>::
  MappingCollection (const MappingCollection<dim> &mapping_collection)
                  :
                  Subscriptor (),
                                                   // copy the array
                                                   // of shared
                                                   // pointers. nothing
                                                   // bad should
                                                   // happen -- they
                                                   // simply all point
                                                   // to the same
                                                   // objects, and the
                                                   // last one to die
                                                   // will delete the
                                                   // mappings
                  mappings (mapping_collection.mappings)
  {}
  
  

  template <int dim>
  unsigned int
  MappingCollection<dim>::memory_consumption () const
  {
    return (sizeof(*this) +
	    MemoryConsumption::memory_consumption (mappings));
  }

  

  template <int dim>
  void
  MappingCollection<dim>::push_back (const Mapping<dim> &new_mapping)
  {
    mappings
      .push_back (boost::shared_ptr<const Mapping<dim> >(new_mapping.clone()));
  }

//---------------------------------------------------------------------------


  template <int dim>
  MappingCollection<dim>
  StaticMappingQ1<dim>::mapping_collection
  = MappingCollection<dim>(::StaticMappingQ1<dim>::mapping);

// explicit instantiations
  template class MappingCollection<deal_II_dimension>;
  template struct StaticMappingQ1<deal_II_dimension>;
  
}
{'fraction_non_alphanumeric': 0.149146110056926, 'fraction_numerical': 0.004174573055028463, 'mean_word_length': 1.2063624947676852, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 44, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6532803', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1127, 'n_words': 298}