Trilinos::Sacado example
Classes | Namespaces | Typedefs | Functions
Sacado_Wrapper.h File Reference
#include <deal.II/base/symmetric_tensor.h>
#include <iostream>
#include <fstream>
#include <cmath>
#include <Sacado.hpp>
Include dependency graph for Sacado_Wrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Sacado_Wrapper::SymTensor< dim >
 
class  Sacado_Wrapper::SymTensor2< dim >
 
class  Sacado_Wrapper::SW_double< dim >
 
class  Sacado_Wrapper::SW_double2< dim >
 
class  Sacado_Wrapper::DoFs_summary< dim >
 

Namespaces

 Sacado_Wrapper
 

Typedefs

using fad_double = Sacado::Fad::DFad< double >
 
typedef Sacado::Fad::DFad< double > DFadType
 

Functions

template<int dim>
void get_index_map (std::map< unsigned int, std::pair< unsigned int, unsigned int >> &std_map_indicies)
 

Typedef Documentation

◆ DFadType

typedef Sacado::Fad::DFad<double> DFadType

◆ fad_double

using fad_double = Sacado::Fad::DFad<double>

Function Documentation

◆ get_index_map()

template<int dim>
void get_index_map ( std::map< unsigned int, std::pair< unsigned int, unsigned int >> &  std_map_indicies)
25 {
26  std::pair<unsigned int, unsigned int> tmp_pair;
27 
28  switch ( dim )
29  {
30  case 2:
31  tmp_pair.first=0; tmp_pair.second=0;
32  std_map_indicies[0] = tmp_pair;
33 
34  tmp_pair.first=0; tmp_pair.second=1;
35  std_map_indicies[1] = tmp_pair;
36 
37  tmp_pair.first=1; tmp_pair.second=1;
38  std_map_indicies[2] = tmp_pair;
39  break;
40  case 3:
41  tmp_pair.first=0; tmp_pair.second=0;
42  std_map_indicies[0] = tmp_pair;
43 
44  tmp_pair.first=0; tmp_pair.second=1;
45  std_map_indicies[1] = tmp_pair;
46 
47  tmp_pair.first=0; tmp_pair.second=2;
48  std_map_indicies[2] = tmp_pair;
49 
50  tmp_pair.first=1; tmp_pair.second=1;
51  std_map_indicies[3] = tmp_pair;
52 
53  tmp_pair.first=1; tmp_pair.second=2;
54  std_map_indicies[4] = tmp_pair;
55 
56  tmp_pair.first=2; tmp_pair.second=2;
57  std_map_indicies[5] = tmp_pair;
58  break;
59  }
60 }