Please enable JavaScript to view this site.

Vensim Help

int VEFCC set_gv(GLOB_VARS *vgv)

{

VENGV = vgv ;

if(!VENGV ||

VENGV->vgv_magic_start != VGV_MAGIC_START ||

VENGV->vgv_magic_end != VGV_MAGIC_END)

return 0 ;

return 1 ;

}

This function provides the address of the GLOB_VARS structure that contains information about the simulation state and also other information such as the location of active Lookup table values.  If the function does not exist, Vensim will not call it. If Vensim does call it a return value of 0 signals a failure.