Le Lundi 23 Octobre 2006 18:08, Bwalya Malama a écrit : > Hi: > > I have done the following: > > #include <gmm_superlu_interface.h> > ... > Assemble A; > SuperLU_factor<double> Af; try
gmm::SuperLU_factor<double> Af; Yves. > ... > 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: [EMAIL PROTECTED] -- Yves. ------------------------------------------------------------------------- Yves Renard ([EMAIL PROTECTED]) tel : (33) 04.72.43.80.11 Pole de Mathematiques, INSA de Lyon fax : (33) 04.72.43.85.29 Institut Camille Jordan - CNRS UMR 5208 20, rue Albert Einstein 69621 Villeurbanne Cedex, FRANCE http://math.univ-lyon1.fr/~renard ------------------------------------------------------------------------- _______________________________________________ Getfem-users mailing list [email protected] https://mail.gna.org/listinfo/getfem-users
