WSL/SLF GitLab Repository

Commit 2d55399c authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Fixed a bug in the subset method (the indices were swapped)

parent f86237a3
......@@ -207,7 +207,7 @@ template<class T> void Array2D<T>::subset(const Array2D<T>& _array2D, const unsi
//Copy by value subspace
for (unsigned int jj=0; jj<ny; jj++) {
for (unsigned int ii=0; ii<nx; ii++) {
operator()(jj,ii) = _array2D(_nx+ii, _ny+jj);
operator()(ii,jj) = _array2D(_nx+ii, _ny+jj);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment