Skip to content
Snippets Groups Projects
Commit 8d492d50 authored by Markus Blatt's avatar Markus Blatt
Browse files

More doku.

[[Imported from SVN: r992]]
parent 68c6d78a
No related branches found
No related tags found
No related merge requests found
......@@ -105,13 +105,16 @@ namespace Dune
void setVerbosity(bool v);
/**
* @brief free allocated space.
* @warn later calling apply will result in an error.
*/
void free();
private:
friend class std::mem_fun_ref_t<void,SuperLU>;
template<class M,class X, class TM, class T1>
friend class SeqOverlappingSchwarz;
/** @brief free allocated space. */
void free();
/** @brief computes the LU Decomposition */
void decompose();
......@@ -153,6 +156,7 @@ namespace Dune
SUPERLU_FREE(B.Store);
SUPERLU_FREE(X.Store);
}
mat.free();
}
template<typename T, typename A, int n, int m>
......
......@@ -66,7 +66,7 @@ namespace Dune
class SeqOverlappingSchwarz;
/**
* @brief Coverte for BCRSMatrix to SuperLU Matrix.
* @brief Coverter for BCRSMatrix to SuperLU Matrix.
*/
template<class B, class TA, int n, int m>
class SuperLUMatrix<BCRSMatrix<FieldMatrix<B,n,m>,TA> >
......@@ -127,11 +127,11 @@ namespace Dune
SuperLUMatrix& operator=(const SuperLUMatrix& mat);
/** @brief free allocated space. */
void free();
private:
/** @brief Initialize data from given matrix. */
void setMatrix(const Matrix& mat);
/** @brief free allocated space. */
void free();
int N_, M_, Nnz_;
B* values;
......@@ -461,6 +461,7 @@ namespace Dune
delete[] rowindex;
delete[] colstart;
SUPERLU_FREE(A.Store);
N_=M_=Nnz_=0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment