From a1c77a22c8425dcdd311fbcaa9c2011e33aced05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Coppens?= Date: Thu, 11 Mar 2021 15:04:35 +0100 Subject: [PATCH] Replaced old matMul() function calls. --- tests/test_external_h5.cpp | 3 ++- tests/test_internal_h5.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_external_h5.cpp b/tests/test_external_h5.cpp index 09e7937..f775510 100644 --- a/tests/test_external_h5.cpp +++ b/tests/test_external_h5.cpp @@ -74,7 +74,8 @@ int test_cycle(H5File file, int cycle) { showMatrix(slater_inverse, dim, "NEW Inverse"); #endif - double * res = matMul(slater_matrix, slater_inverse, dim); + double * res = new double[dim*dim] {0}; + matMul(slater_matrix, slater_inverse, res, dim); bool ok = is_identity(res, dim, 0.5e-4); #ifdef DEBUG diff --git a/tests/test_internal_h5.cpp b/tests/test_internal_h5.cpp index fb93284..1ed3075 100644 --- a/tests/test_internal_h5.cpp +++ b/tests/test_internal_h5.cpp @@ -74,7 +74,8 @@ int test_cycle(H5File file, int cycle) { showMatrix(slater_inverse, dim, "NEW Inverse"); #endif - double * res = matMul(slater_matrix, slater_inverse, dim); + double * res = new double[dim*dim] {0}; + matMul(slater_matrix, slater_inverse, res, dim); bool ok = is_identity(res, dim, 0.5e-4); #ifdef DEBUG