示例#1
0
        public virtual void LoadFromFile(string FileName)
        {
            IFormatter   formatter = new BinaryFormatter();
            Stream       stream    = new FileStream(FileName, FileMode.Open, FileAccess.Read, FileShare.Read);
            FEMSolver_ND TheSolver = (FEMSolver_ND)formatter.Deserialize(stream);

            LoadFrom_Solver_ND(TheSolver);

            stream.Close();
        }
示例#2
0
 protected void LoadFrom_Solver_ND(FEMSolver_ND TheSolver)
 {
     this.Unknowns_NDoF = TheSolver.Unknowns_NDoF;
     this.Nodes         = TheSolver.Nodes;
     this.Sensors       = TheSolver.Sensors;
 }