From GridLAB-D Wiki
Jump to: navigation, search

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

Synopsis

#set allow_reinclude = {FALSE, TRUE}

Remarks

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.

Example

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

History

The allow_reinclude global variable was introduced in https://sourceforge.net/p/gridlab-d/code/5595.

See also