Skip to content

Commit 822d1d2

Browse files
committed
Merge branch 'develop' of github.com:FreeFem/FreeFem-sources into develop
2 parents 45098c9 + b15121f commit 822d1d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/femlib/RNM.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,9 +1050,9 @@ class KN :public KN_<R> { public:
10501050
KN& operator =(const typename RNM_VirtualMatrix<R>::plusAx & Ax)
10511051
{ if(this->unset() && Ax.A && Ax.A->N ) this->set(new R[Ax.A->N],Ax.A->N); if(Ax.A) KN_<R>::operator=(Ax);return *this;}
10521052
KN& operator =(const typename RNM_VirtualMatrix<R>::solveAxeqb & Ab)
1053-
{ if(this->unset()) this->set(new R[Ab.b.N()],Ab.b.N());KN_<R>::operator=(Ab);return *this;}
1053+
{ if(this->unset()) {this->set(new R[Ab.b.N()],Ab.b.N()); KN_<R>::operator=(R());} KN_<R>::operator=(Ab);return *this;}
10541054
KN& operator =(const typename RNM_VirtualMatrix<R>::solveAtxeqb & Ab)
1055-
{ if(this->unset()) this->set(new R[Ab.b.N()],Ab.b.N());KN_<R>::operator=(Ab);return *this;}
1055+
{ if(this->unset()) {this->set(new R[Ab.b.N()],Ab.b.N()); ; KN_<R>::operator=(R());} KN_<R>::operator=(Ab);return *this;}
10561056
KN& operator +=(const typename RNM_VirtualMatrix<R>::plusAx & Ax)
10571057
{ if(this->unset() && Ax.A->N) {
10581058
this->set(new R[Ax.A->N],Ax.A->N);

0 commit comments

Comments
 (0)