libMesh/libmesh: coverage diff

Base cc8438 Head #4451 4263df
Total Total +/- New
Rate 65.60% 65.60% - 100.00%
Hits 78611 78611 - 6
Misses 41227 41227 - 0
Filename Stmts Miss Cover
TOTAL 0 0 +100.00%
code
coverage unchanged
code
coverage increased
code
coverage decreased
+
line added or modified

include/base/libmesh_common.h

187  
188  
189  
190 +
191  
192 +
193  
194  
195 +
196  
197  
198  

// Helper functions for complex/real numbers
// to clean up #ifdef LIBMESH_USE_COMPLEX_NUMBERS elsewhere
template<typename T> LIBMESH_DEVICE_INLINE T libmesh_real(T a) { return a; }
template<typename T> LIBMESH_DEVICE_INLINE T libmesh_imag(T /*a*/) { return 0; }
template<typename T> LIBMESH_DEVICE_INLINE T libmesh_conj(T a) { return a; }

template<typename T>
LIBMESH_DEVICE_INLINE T libmesh_real(std::complex<T> a) { return std::real(a); }

template<typename T>
LIBMESH_DEVICE_INLINE T libmesh_imag(std::complex<T> a) { return std::imag(a); }
202  
203  
204  
205 +
206  
207  
208  

// std::isnan() is in <cmath> as of C++11.
template <typename T>
LIBMESH_DEVICE_INLINE bool libmesh_isnan(T x) { return std::isnan(x); }

template <typename T>
LIBMESH_DEVICE_INLINE bool libmesh_isnan(std::complex<T> a)
210  
211  
212  
213 +
214  
215  
216  

// std::isinf() is in <cmath> as of C++11.
template <typename T>
LIBMESH_DEVICE_INLINE bool libmesh_isinf(T x) { return std::isinf(x); }

template <typename T>
LIBMESH_DEVICE_INLINE bool libmesh_isinf(std::complex<T> a)

include/numerics/tensor_tools.h

102  
103  
104  
105 +
106  
107  
108  
template<typename T>
LIBMESH_DEVICE_INLINE
auto norm_sq(const T & a)
{ return a * libmesh_conj(a); }

template<typename T>
LIBMESH_DEVICE_INLINE