From 8dc3f5e1f8feb7b2634c21de481333b5f5ceb008 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 14 May 2010 21:51:03 +0000 Subject: [PATCH] lua bindings still crash with petsc in complex arithmetic --- Solver/linearSystemPETSc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Solver/linearSystemPETSc.cpp b/Solver/linearSystemPETSc.cpp index 6a4f8b6f84..658caffa31 100644 --- a/Solver/linearSystemPETSc.cpp +++ b/Solver/linearSystemPETSc.cpp @@ -98,7 +98,7 @@ void linearSystemPETSc<fullMatrix<PetscScalar> >::allocate(int nbRows) void linearSystemPETScRegisterBindings(binding *b) { // FIXME on complex arithmetic this crashes - //#if !defined(PETSC_USE_COMPLEX) + #if !defined(PETSC_USE_COMPLEX) classBinding *cb; methodBinding *cm; cb = b->addClass<linearSystemPETSc<PetscScalar> >("linearSystemPETSc"); @@ -121,7 +121,7 @@ void linearSystemPETScRegisterBindings(binding *b) cm->setArgNames("blockSize", NULL); cm = cb->addMethod("systemSolve", &linearSystem<fullMatrix<PetscScalar> >::systemSolve); cm->setDescription("compute x = A^{-1}b"); - //#endif // FIXME + #endif // FIXME } -- GitLab