From 8dde8a8c21cbaf7b3e37b0abcb3dc86baae04d2e Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 10 Feb 2017 12:29:17 -0500 Subject: fixed net_copy: wasn't copying the voltcurmat --- CMakeLists.txt | 2 +- lib/net.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84b8f0f..76eb685 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ add_executable(cen_anal_process src/cen_anal_process.c ${SOURCES}) add_executable(long_anal_process src/long_anal_process.c ${SOURCES}) add_executable(corr_test src/corr_test.c ${SOURCES}) -target_link_libraries(fracture gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst profiler) +target_link_libraries(fracture gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) target_link_libraries(big_anal_process gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) target_link_libraries(cen_anal_process gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) target_link_libraries(long_anal_process gsl c cblas lapack dl pthread cholmod amd colamd suitesparseconfig camd ccolamd rt metis m jst tcmalloc profiler) diff --git a/lib/net.c b/lib/net.c index eb44721..d26b22c 100644 --- a/lib/net.c +++ b/lib/net.c @@ -129,6 +129,7 @@ net_t *net_copy(const net_t *net, cholmod_common *c) { net_copy->boundary_cond = CHOL_F(copy_dense)(net->boundary_cond, c); net_copy->factor = CHOL_F(copy_factor)(net->factor, c); + net_copy->voltcurmat = CHOL_F(copy_sparse)(net->voltcurmat, c); return net_copy; } -- cgit v1.2.3-70-g09d2