Debug and Release Versions of User Defined Models
Anyone have a good setup for developing user-defined models in a debug and release context? I've got most of my toolchain for developing user-defined models setup in Visual Studio so I can compile for debug and release modes including some arguments into my model execution function that I only want available in a development context for debugging the model, but when I compile for release, I need to manually open PSCAD, delete those arguments from my model Fortran call, and then package for release.
Anybody have a nicer more automated way of doing this? I'm considering setting up some Python code for scrubbing my debug stuff from my library and example case files to help speed up model releases.
Status:
Open Sep 11, 2015 - 07:59 AM
user-defined blackbox release
1answer
Answer
Sep 21, 2015 - 02:27 PM
One solution may be to use the pre-processor directives in the code and also in the component script. Still you may want to delete stuff in the script section for cosmetic reasons.
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
Add New Comment