示例#1
0
        /// <summary>
        /// Makes each level set load the appropriate <paramref name="data"/>
        /// for the given <paramref name="tsi"/>.
        /// </summary>
        /// <param name="tsi">
        /// Information about the time-step
        /// </param>
        /// <param name="data">
        /// Data to be loaded
        /// </param>
        /// <param name="loadedObjects">
        /// Cache for already loaded objects
        /// </param>
        /// <remarks>
        /// Causes an update of the level set tracker!
        /// </remarks>
        public void LoadData(ITimestepInfo tsi, IList <CellFieldDataSet> data, HashSet <object> loadedObjects)
        {
            if (loadedObjects.Contains(this))
            {
                return;
            }

            foreach (var Ls in this.LevelSets)
            {
                Ls.As <LevelSet>().LoadData(tsi, data, loadedObjects);
            }
            this.UpdateTracker(0.0);
            loadedObjects.Add(this);
        }