Function for writing data to cache such that the results can be written at destruction.
function cacheVals input AixLib.Utilities.IO.Files.BaseClasses.JSONWriterObject ID "Json writer object id"; input Real[:] varVals "Variable values"; end cacheVals;