Dear all,

I have trouble running ex06 from the "meshlib" examples.

http://libmesh.sourceforge.net/ex6.php

It says something like..

"For this example to work you must have configured the library with the 
--enable-ifem option"

which I don't understand the way to do it.

when I compile the code, I use the following command

[gtse@d30smm4 ex6]$ c++ ex6.C 
/home/geoffery/libmesh-0.7.1/libmesh/examples/ex3/exact_solution.C 
`/home/geoffery/libmesh-0.7.1/libmesh/contrib/bin/libmesh-config --cxxflags 
--include --ldflags`

and it compiles and when run the executable it gives the output like this,

[gtse@d30smm4 ex6]$ ./a.out
Assertion `false' failed.  Configuring libMesh with --enable-ifem may be 
required to run this code.
[gtse@d30smm4 ex6]$

which is no good. then I tried something like this and,

[gtse@d30smm4 ex6]$ c++ ex6.C 
/home/geoffery/libmesh-0.7.1/libmesh/examples/ex3/exact_solution.C 
`/home/geoffery/libmesh-0.7.1/libmesh/contrib/bin/libmesh-config -- enable-ifem 
--cxxflags --include --ldflags`

still there is no luck. it says something like,

c++: ambiguous abbreviation --
c++: Unknown: No such file or directory
c++: argument:: No such file or directory
c++: usage:: No such file or directory
cc1plus: error: unrecognized command line option "-fcppflags"
cc1plus: error: unrecognized command line option "-fcxxflags"
cc1plus: error: unrecognized command line option "-fcxx"
cc1plus: error: unrecognized command line option "-fcc"
cc1plus: error: unrecognized command line option "-fcppflags"
cc1plus: error: unrecognized command line option "-fcxxflags"
cc1plus: error: unrecognized command line option "-fcxx"
cc1plus: error: unrecognized command line option "-fcc"
[gtse@d30smm4 ex6]$

later, I tried going into this directory

/home/geoffery/libmesh-0.7.1/libmesh/include/base

and configure the libmesh_config.h file. Done this by un-commenting the 
following part

/* Flag indicating if the library should be built with infinite elements */
#undef LIBMESH_ENABLE_INFINITE_ELEMENTS

then compile the code, run ex06 and now back to square one...

Assertion `false' failed.  Configuring libMesh with --enable-ifem may be 
required to run this code.



also tried the following but don't think it would work either...

/* Flag indicating if the library should be built with infinite elements */
#ifndef LIBMESH_ENABLE_INFINITE_ELEMENTS
#define LIBMESH_ENABLE_INFINITE_ELEMENTS 1
#endif

while the output gives...

[gtse@d30smm4 ex6]$ c++ ex6.C 
/home/geoffery/libmesh-0.7.1/libmesh/examples/ex3/exact_solution.C 
`/home/geoffery/libmesh-0.7.1/libmesh/contrib/bin/libmesh-config --cxxflags 
--include --ldflags`
/tmp/cc6vvFni.o: In function `main':
ex6.C:(.text+0x1b3): undefined reference to 
`libMesh::InfElemBuilder::build_inf_elem(bool)'
/tmp/cc6vvFni.o: In function `assemble_wave(libMesh::EquationSystems&, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
ex6.C:(.text+0x12c8): undefined reference to 
`libMesh::FEBase::build_InfFE(unsigned int, libMesh::FEType const&)'
collect2: ld returned 1 exit status



finally, also tried by modifying the line in ex6.C

from

libmesh_example_assert(false, "--enable-ifem");

to

libmesh_example_assert(true, "--enable-ifem");

but there is no output after compiling and running it.


so, could you give us some clue?

Thanks,

Geoffrey


Geoffrey Tse | D30, Sackville Street Building | School of Electrical and 
Electronic Engineering |University of Manchester |Manchester | M60 1QD | Tel: 
0161 306 4773 |
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to