nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#632 Define POWERWORLD global variable when module is find the extern app, #2375

Closed nikhilgupta10 closed 7 years ago

nikhilgupta10 commented 7 years ago

In order to allow autotests to pass when powerworld is not installed on the host system, do the following:

1) when the module loads correctly, define a global variable called \POWERWORLD=1. Otherwise, leave it undefined.

2) add #ifdef POWERWORLD / #else / #warning \Powerworld not installed\ / #endif\ to the parts of each autotest that won't work when powerworld is not installed on the host system.

,

nikhilgupta10 commented 7 years ago

nikhilgupta10 imported these comments from Sourceforge: "ftuffner": * status changed from new to accepted ,

"ftuffner":Alternative approach taken. I believe the fundamental reason for this ticket was that we had \module network\ outside the ifdef structure, which was causing failures. Moved it inside and now machines without PowerWorld or the network module complete successfully.

,

"ftuffner": * status changed from accepted to closed

Adjusted code set to not compile PowerWorld interface in unless \HAVE_POWERWORLD\ is specified inside platform.h. Committed as part of r3641 and r3642.

,

"dchassin":- Milestone: Unscheduled --> Knothole Interim ,