From GridLAB-D Wiki
Jump to: navigation, search

allow_reinclude -- allow an include file to be included more than once


#set allow_reinclude = {FALSE, TRUE}


Normally, GridLAB-D does not allow an include file to included more than once. However, when parameter include files are used, the ability to use an include file more than once is usually desired. The allow_reinclude global variable disables the restriction.


In file main.glm

#set allow_reinclude=TRUE
#define OPTION=1
#include "option.glm"
#set OPTION=2
#include "option.glm"

In file option.glm

#print Option = $OPTION


The allow_reinclude global variable was introduced in

See also