You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I merged new changes to my dev branch and notice that linking started to fail for ionosphereSolverTests.
It was due to sysBoundaryContainer member variable having been added to ObjectWrapper so the generated constructor and destructor for ObjectWrapper calls constructor and destructor of SysBoundary which are not linked/compiled for ionosphereSolverTests.
Tried to start modify the Makefile for ionosphereSolverTests but by first adding dependency on sysboundary.o like in the main Makefile of Vlasiator but then the linking problem cascaded and it was not feasible to hand craft the Makefile or it is but it is a lot of work which might get broken again in the future.
The good solution would be to come up with smarter way to compile ionosphereSolverTests using the main Makefile but I did not come up with any practical solution. The workaround that worked was to just comment out sysBoundaryContainer member variable of ObjectWrapper when building ionosphereSolverTests.
The text was updated successfully, but these errors were encountered:
MiroPalmu
changed the title
sysBoundaryContainer member variable of ObjectWrapper broke ionosphereSolverTests mini-test linking
sysBoundaryContainer member variable of ObjectWrapper broke ionosphereSolverTests mini-app linking
Dec 11, 2022
Hmm! It does sound a bit overkill indeed if the objectwrapper also calls sysboundary constructors / destructors. A bit of spill-over-results from this seemingly insignificant change.
Do you actually need the objectwrapper for the mini-app or could that be worked around?
I merged new changes to my dev branch and notice that linking started to fail for ionosphereSolverTests.
It was due to sysBoundaryContainer member variable having been added to ObjectWrapper so the generated constructor and destructor for ObjectWrapper calls constructor and destructor of SysBoundary which are not linked/compiled for ionosphereSolverTests.
Tried to start modify the Makefile for ionosphereSolverTests but by first adding dependency on sysboundary.o like in the main Makefile of Vlasiator but then the linking problem cascaded and it was not feasible to hand craft the Makefile or it is but it is a lot of work which might get broken again in the future.
The good solution would be to come up with smarter way to compile ionosphereSolverTests using the main Makefile but I did not come up with any practical solution. The workaround that worked was to just comment out sysBoundaryContainer member variable of ObjectWrapper when building ionosphereSolverTests.
The text was updated successfully, but these errors were encountered: