コード例 #1
0
        public OneD_PoissonSolver(Experiment exp, bool using_external_code, Dictionary<string, object> input)
            : base(using_external_code)
        {
            this.exp = exp;

            // generate Laplacian matrix (spin-resolved)
            if (!using_external_code)
            {
                laplacian = Generate_Laplacian(exp.Layers);
                lu_fact = new DoubleTriDiagFact(laplacian);
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: EdmundOwen/QuMESHS
        static void Main(string[] args)
        {
            // set nmath license key
            CenterSpace.NMath.Core.NMathConfiguration.LicenseKey = License.NMath_License_Key;

            Dictionary<string,object> input = new Dictionary<string,object>();
            Inputs_to_Dictionary.Add_Input_Parameters_to_Dictionary(ref input, "Input_Parameters.txt");
            Inputs_to_Dictionary.Add_Input_Parameters_to_Dictionary(ref input, "Solver_Config.txt");

            Experiment exp = new Experiment();
            exp.Initialise(input);
            exp.Run();
        }