TorSterner Posted March 7, 2011 Share Posted March 7, 2011 Hi! I'm writing a SIM_Solver. The problem I have is that parameters that is set when only one object is connected to my solver goes back to default when more objects are connected. Pseudo: PRM_Template(PRM_TOGGLE, 1, &themyParmName, PRMoneDefaults) is added to templates and shown in the node parameters as a checkbox. GETSET_DATA_FUNCS_B(SIM_NAME_MYPARM, MyParm) is set and the get-functions is working by getMyParm(). When I use getMyParm() in solveObjectsSubclass() it returns the parameter value of 0 or 1. When I run the solver with ONE object the correct value is returned from getMyParm(). When I run the solver with TWO or more objects, the default value is always shown. I've tried to copy as much I can from SIM_SolverODE regarding this but haven't been able to make it work. Any tips? Quote Link to comment Share on other sites More sharing options...
TorSterner Posted March 9, 2011 Author Share Posted March 9, 2011 Solved. My mistake, forgot to transfer values of parameters when doing a makeEqualSubclass. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.