rarray: fix constructor
This commit is contained in:
parent
52338fcc25
commit
127577e422
2 changed files with 5 additions and 5 deletions
|
@ -48,9 +48,9 @@ namespace CNORXZ
|
|||
{}
|
||||
|
||||
template <typename T>
|
||||
template <class IndexI, class IndexK>
|
||||
RCArray<T>::RCArray(const Sptr<RRange<IndexI,IndexK>>& range) :
|
||||
mA(std::make_unique<T>(range->local())),
|
||||
template <class RangeI, class RangeK>
|
||||
RCArray<T>::RCArray(const Sptr<RRange<RangeI,RangeK>>& range) :
|
||||
mA(std::make_unique<MArray<T>>(range->local())),
|
||||
mGeom(range->geom()),
|
||||
mGlobal(range)
|
||||
{}
|
||||
|
|
|
@ -37,8 +37,8 @@ namespace CNORXZ
|
|||
/** Construct from a rank range.
|
||||
@param range The range.
|
||||
*/
|
||||
template <class IndexI, class IndexK>
|
||||
RCArray(const Sptr<RRange<IndexI,IndexK>>& range);
|
||||
template <class RangeI, class RangeK>
|
||||
RCArray(const Sptr<RRange<RangeI,RangeK>>& range);
|
||||
|
||||
/** Construct from local array object.
|
||||
@param a Local array.
|
||||
|
|
Loading…
Reference in a new issue