rarray: fix constructor

This commit is contained in:
Christian Zimmermann 2024-06-04 19:44:34 +02:00
parent 52338fcc25
commit 127577e422
2 changed files with 5 additions and 5 deletions

View file

@ -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)
{}

View file

@ -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.