Loading src/TNL/SharedPointer.h +10 −0 Original line number Diff line number Diff line Loading @@ -230,6 +230,11 @@ class SharedPointer< Object, Devices::Host > : public SmartPointer return true; } void clear() { this->free(); } ~SharedPointer() { this->free(); Loading Loading @@ -512,6 +517,11 @@ class SharedPointer< Object, Devices::Cuda > : public SmartPointer #endif } void clear() { this->free(); } ~SharedPointer() { this->free(); Loading src/TNL/Solvers/Linear/BICGStab_impl.h +5 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,11 @@ template< typename Matrix, typename Preconditioner > BICGStab< Matrix, Preconditioner > :: BICGStab() { /**** * Clearing the shared pointer means that there is no * preconditioner set. */ this->preconditioner.clear(); } template< typename Matrix, Loading src/TNL/Solvers/Linear/CG_impl.h +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,11 @@ template< typename Matrix, typename Preconditioner > CG< Matrix, Preconditioner > :: CG() { /**** * Clearing the shared pointer means that there is no * preconditioner set. */ this->preconditioner.clear(); } template< typename Matrix, Loading src/TNL/Solvers/Linear/CWYGMRES_impl.h +5 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,11 @@ CWYGMRES() ldSize( 0 ), restarting( 10 ) { /**** * Clearing the shared pointer means that there is no * preconditioner set. */ this->preconditioner.clear(); } template< typename Matrix, Loading src/TNL/Solvers/Linear/GMRES.h +1 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ protected: IndexType size, restarting; MatrixPointer matrix; PreconditionerPointer preconditioner; }; Loading Loading
src/TNL/SharedPointer.h +10 −0 Original line number Diff line number Diff line Loading @@ -230,6 +230,11 @@ class SharedPointer< Object, Devices::Host > : public SmartPointer return true; } void clear() { this->free(); } ~SharedPointer() { this->free(); Loading Loading @@ -512,6 +517,11 @@ class SharedPointer< Object, Devices::Cuda > : public SmartPointer #endif } void clear() { this->free(); } ~SharedPointer() { this->free(); Loading
src/TNL/Solvers/Linear/BICGStab_impl.h +5 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,11 @@ template< typename Matrix, typename Preconditioner > BICGStab< Matrix, Preconditioner > :: BICGStab() { /**** * Clearing the shared pointer means that there is no * preconditioner set. */ this->preconditioner.clear(); } template< typename Matrix, Loading
src/TNL/Solvers/Linear/CG_impl.h +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,11 @@ template< typename Matrix, typename Preconditioner > CG< Matrix, Preconditioner > :: CG() { /**** * Clearing the shared pointer means that there is no * preconditioner set. */ this->preconditioner.clear(); } template< typename Matrix, Loading
src/TNL/Solvers/Linear/CWYGMRES_impl.h +5 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,11 @@ CWYGMRES() ldSize( 0 ), restarting( 10 ) { /**** * Clearing the shared pointer means that there is no * preconditioner set. */ this->preconditioner.clear(); } template< typename Matrix, Loading
src/TNL/Solvers/Linear/GMRES.h +1 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ protected: IndexType size, restarting; MatrixPointer matrix; PreconditionerPointer preconditioner; }; Loading