Exemple #1
0
 public Starter()
 {
     //
     // TODO: Add constructor logic here
     //
     MM = new MemMan();
     MemMan.MEMORYSTATUSEX MS;
     MS = MemMan.MemoryStatus();
     MemMan.curProc.MaxWorkingSet = (IntPtr)MS.TotalPhys;
     MemMan.curProc.MinWorkingSet = (IntPtr)((uint)MemMan.curProc.MaxWorkingSet * 0.75);
     ExI = ++ExN;
 }
Exemple #2
0
        public bool PrepareCurves()
        {
            if (!IsPotcurve)
            {
                return(true);
            }
            ArrayList LookUp = new ArrayList();
            ArrayList DWList = new ArrayList();

            uint   i;
            double dze;

            for (i = 0; i < NAtoms; i++)
            {
                if ((type_[i] = LookUp.IndexOf(type[i])) >= 0)
                {
                    if (DW[i] == (double)DWList[type_[i]])
                    {
                    }
                    else
                    {
                        type_[i] = LookUp.Add(type[i]);
                        DWList.Add(DW[i]);
                    }
                }
                else
                {
                    type_[i] = LookUp.Add(type[i]);
                    DWList.Add(DW[i]);
                }
            }
            NTypes = (uint)LookUp.Count;
            MMM    = new MemMan();
            MemMan.Compact();

            if (IsPotRec)
            {
                CurveLength = 0x10000;
            }
            else
            {
                CurveLength = (uint)(atrad / dela);
            }

            dze = (double)N / (2.0 * (a * Math.Sin(gam)));       // gamma  ÐÀÄÈÀÍÀÕ!!!
            dze = Math.Min(dze, (double)M / (2.0 * (b * Math.Sin(gam))));

            if (!MMM.Allocate(NTypes * CurveLength * sizeof(double)))
                return(false); }
Exemple #3
0
 public void Restore()
 {
     MemMan.Restore();
 }
Exemple #4
0
 public void Hybernate()
 {
     MemMan.Hybernate();
 }
Exemple #5
0
 public void SetItem(object value)
 {
     MemMan.SetItem(value);
 }
Exemple #6
0
 public void SetItem(string name, object value)
 {
     MemMan.SetItem(name, value);
 }
Exemple #7
0
 public string[] ListRegisters(string query)
 {
     return(MemMan.ListRegisters(query));
 }
Exemple #8
0
 public object GetItem(string name)
 {
     return(MemMan.GetItem(name));
 }