Question #233320 on Yade changed: https://answers.launchpad.net/yade/+question/233320
Jan Stránský proposed the following answer: Hello (Bruno), the problem (as Matthias' error says) in file yade/lib/triangulation/def_types.h. Specifically sizeof(Traits::RT) does not equal long double (which is typedefed as Real in lib/base/Math.hpp). Would it be somehow possible to use TraitsReal instead of Real in the plasces where it is used in lib/trangulation? Or possibly some conversion from long double to ordinary double where it would be needed? cheers Jan 2013/8/1 Jan Stránský <[email protected]> > Question #233320 on Yade changed: > https://answers.launchpad.net/yade/+question/233320 > > Status: Open => Answered > > Jan Stránský proposed the following answer: > Hello Matthias, > > I will have a look and try to compile yade with QUAD_PRECISION defined > trying to eliminate all errors. Unfortunately currently I am a bit busy, so > probably it won't be finished this week. But should be beginning of the > next week, I will inform you :-) > cheers > Jan > > > > 2013/7/31 matthias <[email protected]> > > > New question #233320 on Yade: > > https://answers.launchpad.net/yade/+question/233320 > > > > I want to compile yade with quad precision > > (-DCMAKE_CXX_FLAGS="-DQUAD_PRECISION"). my nummerical stability problem > is > > still not solved. I tried it with some different fitness function. this > > reduces the impact of the instability, but solves not the problem. So I > > need more precision. > > > > While compiling yade I get some of these errors: > > > > In file included from > > /home/yade/trunk/yade/lib/triangulation/RegularTriangulation.h:10:0, > > from > > /home/yade/trunk/yade/lib/triangulation/Tesselation.h:9, > > from > > /home/yade/trunk/yade/lib/triangulation/TriaxialState.h:16, > > from > > > /home/yade/trunk/yade/lib/triangulation/KinematicLocalisationAnalyser.hpp:15, > > from /home/yade/trunk/pkg/dem/MicroMacroAnalyser.cpp:16: > > /home/yade/trunk/yade/lib/triangulation/def_types.h:37:1: Fehler: > > Ungültige Anwendung von »sizeof« auf unvollständigen Typen > > »boost::STATIC_ASSERTION_FAILURE<false>« > > /home/yade/trunk/yade/lib/triangulation/def_types.h:37:1: Fehler: > > Templateargument 1 ist ungültig > > /home/yade/trunk/yade/lib/triangulation/def_types.h:37:54: Fehler: > invalid > > type in declaration before »;« token > > /home/yade/trunk/pkg/dem/MicroMacroAnalyser.cpp: In Elementfunktion > > »CGT::TriaxialState& MicroMacroAnalyser::makeState(unsigned int, const > > char*)«: > > /home/yade/trunk/pkg/dem/MicroMacroAnalyser.cpp:141:61: Fehler: keine > > passende Funktion für Aufruf von »min(const result_type&, long double)« > > > > I know i want to use an experimental feature. But is there a version > which > > could be build with this option, or must I repair the code be hand. > > > > > > -- > > You received this question notification because you are a member of > > yade-users, which is an answer contact for Yade. > > > > _______________________________________________ > > Mailing list: https://launchpad.net/~yade-users > > Post to : [email protected] > > Unsubscribe : https://launchpad.net/~yade-users > > More help : https://help.launchpad.net/ListHelp > > > > -- > You received this question notification because you are a member of > yade-users, which is an answer contact for Yade. > > _______________________________________________ > Mailing list: https://launchpad.net/~yade-users > Post to : [email protected] > Unsubscribe : https://launchpad.net/~yade-users > More help : https://help.launchpad.net/ListHelp > -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

