Skip to content
Snippets Groups Projects
Commit 2bbee28f authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

add zero initialization of global matrix.

parent 84270d04
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,7 @@ void checkLinearSolverInterface(T_MATRIX &A, boost::property_tree::ptree &ls_opt
Example1 ex1;
// set a coefficient matrix
A.setZero();
for (size_t i=0; i<ex1.dim_eqs; i++) {
for (size_t j=0; j<ex1.dim_eqs; j++) {
double v = ex1.mat(i, j);
......
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