Just to add on this out of curiosity: Due to the missing instantiation of NumericVector<Real> etc. it will be even not possible to setup some custom `System`-type with double-variables, I guess?

Best regards
Hubert


On 8/23/21 3:02 PM, John Peterson wrote:
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.

The decision to use complex numbers is a compile-time one. If your program
links against a libmesh with complex numbers enabled, then the Number type
is #defined to be std::complex<double>. Furthermore certain libmesh
templates, in particular the NumericVector and SparseMatrix classes are
only instantiated for type Number, so these will all use
std::complex<double> internally in such builds.



_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to