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; }
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); }
public void Restore() { MemMan.Restore(); }
public void Hybernate() { MemMan.Hybernate(); }
public void SetItem(object value) { MemMan.SetItem(value); }
public void SetItem(string name, object value) { MemMan.SetItem(name, value); }
public string[] ListRegisters(string query) { return(MemMan.ListRegisters(query)); }
public object GetItem(string name) { return(MemMan.GetItem(name)); }