Skip to content
Snippets Groups Projects
Commit 8640002f authored by Alperen, Abdullah's avatar Alperen, Abdullah
Browse files

PuReMD: fix the allocation size of one of the arrays needed for SAI computation

parent 3240cfcf
No related branches found
No related tags found
No related merge requests found
......@@ -1235,7 +1235,12 @@ real sparse_approx_inverse( reax_system *system, simulation_data *data,
X = smalloc( sizeof(int) * (system->bigN + 1),
"sparse_approx_inverse::X", MPI_COMM_WORLD );
q = smalloc( sizeof(int) * system->N * 2,
//size of q should be equal to the maximum possible cardinalty
//of the set formed by neighbors of neighbors of an atom
//i.e, maximum number of rows of dense matrix
//for water systems, this number is 34000
//for silica systems, it is 12000
q = smalloc( sizeof(int) * 50000,
"sparse_approx_inverse::q", MPI_COMM_WORLD );
for ( i = 0; i <= system->bigN; ++i )
......
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