getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Using SuperLU - A question


From: Bwalya Malama
Subject: Re: [Getfem-users] Using SuperLU - A question
Date: Mon, 23 Oct 2006 10:08:58 -0600 (MDT)
User-agent: SquirrelMail/1.4.8-1.fc5

Hi:

I have done the following:

#include <gmm_superlu_interface.h>
...
 Assemble A;
 SuperLU_factor<double> Af;
 ...
 Af.build_with(A);

When I try to compile, I get the following error:

flow3d3s.cpp: In function ‘int main(int, char**)’:
flow3d3s.cpp:802: error: ‘SuperLU_factor’ was not declared in this scope
flow3d3s.cpp:802: error: expected primary-expression before ‘double’
flow3d3s.cpp:802: error: expected `;' before ‘double’
flow3d3s.cpp:828: error: ‘Cf’ was not declared in this scope

I compile as follows:
>>g++ flow3d3s.cpp -o h3d3s -lm -DGMM_USES_SUPERLU
../SuperLU_3.0/libsuperlu_3.0.a ../SuperLU_3.0/libblas.a
-I/../SuperLU_3.0/

Note that the code works with: SuperLU_solve(A,x,b);

It's only when I try "SuperLU_factor<double> Af" that I experience the
above error. Could you help resolve this? I'm a novice to object oriented
programming.

Sincerely,
-- Bwalya
Bwalya Malama, Ph.D.
Center for Geophysical Research of the Shallow Subsurface
Boise State University
Boise, Idaho
tel: 208-426-2959
email: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]