Hi Edgar, The way I think you'll want to handle this is using libMesh's built-in numeric types. libMesh::Number will be a complex-valued quantity when libMesh is compiled with complex numbers and a standard float when not. libMesh::Real will always be a standard float, regardless of the complex mode that libMesh is configured with. So the part of your program that you wish to be real-valued, use libMesh::Real.
HTH, Paul On Mon, Aug 23, 2021 at 7:53 AM edgar <edgar...@cryptolab.net> wrote: > Hi Hubert! > > Thanks. It seems that the option which you are sending is for the > overall libMesh compilation (correct me if I'm wrong). I am interested > in having my libMesh with the ability to process complex numbers, and > just compiling a specific program (not the whole libMesh) without > complex numbers. Do you know if there is a way for that? Thank you > again. > > > On 2021-08-23 08:33, Hubert Weissmann wrote: > > Good morning Edgar, > > > > using ``--enable-complex=no`` should do you that trick. > > In the output of `configure --help` is a statement > > > > > > Optional Features: > > --disable-option-checking ignore unrecognized --enable/--with > > options > > --disable-FEATURE do not include FEATURE (same as > > --enable-FEATURE=no) > > --enable-FEATURE[=ARG] include FEATURE [ARG=yes] > > > > which is a bit hidden if one seeks for a particular option. > > > > I hope, this help you. > > > > All the best > > Hubert > > > _______________________________________________ > Libmesh-users mailing list > Libmesh-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libmesh-users > _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users