mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
force linking interface to nglib and nglib to netgenpy, this avoids missing symbols when importing netgen from python
This commit is contained in:
parent
2e936ac7b7
commit
5f29387c0b
@ -25,3 +25,12 @@ BOOST_PYTHON_MODULE(libngpy)
|
||||
ExportGeom2d();
|
||||
}
|
||||
|
||||
// Force linking libnglib to libnetgenpy
|
||||
namespace netgen
|
||||
{
|
||||
void MyBeep (int i);
|
||||
void MyDummyToForceLinkingNGLib()
|
||||
{
|
||||
MyBeep(0);
|
||||
}
|
||||
}
|
||||
|
@ -1228,7 +1228,6 @@ namespace netgen
|
||||
|
||||
|
||||
|
||||
|
||||
//void Render() { ; }
|
||||
|
||||
} // End of namespace netgen
|
||||
@ -1247,3 +1246,10 @@ void Ng_SetSolutionData (Ng_SolutionData * soldata)
|
||||
void Ng_InitSolutionData (Ng_SolutionData * soldata) { ; }
|
||||
*/
|
||||
|
||||
// Force linking libinterface to libnglib
|
||||
#include <../interface/writeuser.hpp>
|
||||
void MyDummyToForceLinkingLibInterface(Mesh &mesh, NetgenGeometry &geom)
|
||||
{
|
||||
netgen::WriteUserFormat("", mesh, geom, "");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user