Database.flushScriptedResults


flushScriptedResults([component])

Remove all results previously stored using setScriptedResults(), setNodeScriptedResults or setGaussScriptedResults. It will subsequently be an error to request a value for such results.

Additionally, this routine cleans up all memory used to cache results that have been accessed in the current script using getResults(), or any of the corresponding Element routines. This can be useful when writing scripts for large models, which might otherwise run out of memory. By default, LUSAS Modeller caches any results that have been asked for until the end of the script, in case they are asked for again. Once this function has been called, a further attempt to access the same results again will simply cause a re-calculation of those results. It is an error to flush results that do not exist - check first with existsScriptedResults

componentoptional string Name of user component. If not specified, all user results will be flushed
Return valuenone 

See also initialiseScriptedResults setScriptedResultsEntity specifyResultsUpdateScript specifyResultsUpdateModule setNodeScriptedResults setGaussScriptedResults setScriptedResults staetUsingScriptedResults stopUsingScriptedResults

Back to Database

Back to Overview