public void AddDefaults()
        {
            Random rnd   = new Random();
            int    n_new = rnd.Next(3, 5);

            for (int i = 0; i < n_new; i++)
            {
                Grid1D           d1       = new Grid1D(3, 4);
                V2DataOnGrid     New_Grid = new V2DataOnGrid("a", 4, d1, d1);
                V2DataCollection New_Coll = new V2DataCollection("b", 5);
                New_Grid.InitRandom(12, 20);
                New_Coll.InitRandom(5, 1, 10, 12, 20);
                Main_Data.Add(New_Grid);
                Main_Data.Add(New_Coll);
            }
        }
Пример #2
0
        public void AddDefaults()
        {
            Random rnd = new Random();

            Grid1D       d1         = new Grid1D(1, 2);
            Grid1D       d2         = new Grid1D(2, 2);
            V2DataOnGrid New_Grid   = new V2DataOnGrid("A", 3, d1, d1);
            V2DataOnGrid New_Grid_1 = new V2DataOnGrid("A", 3, d2, d2);

            New_Grid.InitRandom(3, 7);
            New_Grid_1.InitRandom(4, 8);

            V2DataCollection New_Coll = new V2DataCollection("B", 5);

            New_Coll.InitRandom(4, 4, 6, 4, 6);



            Main_Data.Add(New_Grid);
            Main_Data.Add(New_Grid_1);
            Main_Data.Add(New_Grid_1);
            Main_Data.Add(New_Coll);
        }