mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3313 Implement weighted average of WBS data.
This commit is contained in:
@@ -29,7 +29,7 @@ class Tensor3
|
||||
{
|
||||
S m_tensor[6]; // SXX, SYY, SZZ, SXY, SYZ, SZX
|
||||
public:
|
||||
Tensor3() {}
|
||||
Tensor3();
|
||||
Tensor3(S sxx, S syy, S szz, S sxy, S syz, S szx);
|
||||
Tensor3(const Tensor3& other);
|
||||
template<typename T>
|
||||
|
||||
@@ -27,6 +27,19 @@
|
||||
namespace caf {
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
template< typename S>
|
||||
caf::Tensor3<S>::Tensor3()
|
||||
{
|
||||
m_tensor[0] = (S) 0.0;
|
||||
m_tensor[1] = (S) 0.0;
|
||||
m_tensor[2] = (S) 0.0;
|
||||
m_tensor[3] = (S) 0.0;
|
||||
m_tensor[4] = (S) 0.0;
|
||||
m_tensor[5] = (S) 0.0;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
/// Copy constructor
|
||||
|
||||
Reference in New Issue
Block a user