Skip to content
Snippets Groups Projects

Migrate from dune-fufem to dune-functions bases

Merged Nebel, Lisa Julia requested to merge lnebel/dune-gfe:migration into master
1 file
+ 16
0
Compare changes
  • Side-by-side
  • Inline
+ 16
0
@@ -66,6 +66,17 @@ public:
@@ -66,6 +66,17 @@ public:
return *this;
return *this;
}
}
 
RealTuple& operator-=(const Dune::FieldVector<T,N>& other) {
 
data_ -= other;
 
return *this;
 
}
 
 
template <class T2>
 
RealTuple& operator-=(const RealTuple<T2,N>& other) {
 
data_ -= other.data_;
 
return *this;
 
}
 
/** \brief Assigment from RealTuple with different type -- used for automatic differentiation with ADOL-C */
/** \brief Assigment from RealTuple with different type -- used for automatic differentiation with ADOL-C */
template <class T2>
template <class T2>
RealTuple& operator <<= (const RealTuple<T2,N>& other) {
RealTuple& operator <<= (const RealTuple<T2,N>& other) {
@@ -74,6 +85,11 @@ public:
@@ -74,6 +85,11 @@ public:
return *this;
return *this;
}
}
 
/** \brief Const random-access operator*/
 
T operator[] (const size_t indexVariable ) const {
 
return data_[indexVariable];
 
}
 
/** \brief Rebind the RealTuple to another coordinate type */
/** \brief Rebind the RealTuple to another coordinate type */
template<class U>
template<class U>
struct rebind
struct rebind
Loading