Esempio n. 1
0
        internal static void ExampleAutoSetup()
        {
            FuncCallBack2 oFunc2 = FunctionCallback2;
            StpntCallBack oStpnt = StpntCallback;
            BcndCallBack  oBcnd  = BoundaryCallback;

            AutoInterface.SetAutoNumParameters(36);
            AutoInterface.setCallbackFunc2(oFunc2);
            AutoInterface.setCallbackStpnt(oStpnt);
            AutoInterface.setCallbackBcnd(oBcnd);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            FuncCallBack2 oFunc2 = new FuncCallBack2(FunctionCallback2);
            StpntCallBack oStpnt = new StpntCallBack(StpntCallback);
            BcndCallBack  oBcnd  = new BcndCallBack(BoundaryCallback);


            //AutoInterface.SetAutoNumParameters(36);
            AutoInterface.setCallbackFunc2(oFunc2);
            AutoInterface.setCallbackStpnt(oStpnt);
            AutoInterface.setCallbackBcnd(oBcnd);
            //AutoInterface.setFort2File(global::AutoTorCSharp.Properties.Resources.fort, global::AutoTorCSharp.Properties.Resources.fort.Length);
            AutoInterface.CallAuto();

            int    nLength = 0;
            string sResult = AutoInterface.getFort7File(out nLength);

            Console.WriteLine(sResult);
            //Console.WriteLine("done!");
        }
Esempio n. 3
0
        internal void SetupUsingModel(IModel oCurrentModel)
        {
            if (oCurrentModel == null)
            {
                throw new ArgumentNullException("oCurrentModel", "Need to load SBML file first.");
            }

            setupControl1.CurrentConfig.NDIM = oCurrentModel.y.Length;

            _InitializationCallBack = ModelInitializationCallback;
            _FunctionCallBack       = ModelFunctionCallback;
            //_BCNDCallBack = new BcndCallBack(ModelBcndCallBack);
            //_IcndCallBack = new IcndCallBack(ModelIcndCallBack);
            //_FoptCallBack = new FoptCallBack(ModelFoptCallBack);
            //_PvlsCallBack = new PvlsCallBack(ModelPvlsCallBack);


            AutoInterface.setCallbackStpnt(_InitializationCallBack);
            AutoInterface.setCallbackFunc2(_FunctionCallBack);
            //AutoInterface.setCallbackBcnd(_BCNDCallBack);
            //AutoInterface.setCallbackIcnd(_IcndCallBack);
            //AutoInterface.setCallbackFopt(_FoptCallBack);
            //AutoInterface.setCallbackPvls(_PvlsCallBack);
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            FuncCallBack2 oFunc2 = new FuncCallBack2(FunctionCallback2);
            StpntCallBack oStpnt = new StpntCallBack(StpntCallback);
            BcndCallBack oBcnd = new BcndCallBack(BoundaryCallback);

            //AutoInterface.SetAutoNumParameters(36);
            AutoInterface.setCallbackFunc2(oFunc2);
            AutoInterface.setCallbackStpnt(oStpnt);
            AutoInterface.setCallbackBcnd(oBcnd);
            //AutoInterface.setFort2File(global::AutoTorCSharp.Properties.Resources.fort, global::AutoTorCSharp.Properties.Resources.fort.Length);
            AutoInterface.CallAuto();

            int nLength = 0;
            string sResult = AutoInterface.getFort7File(out nLength);
            Console.WriteLine(sResult);
            //Console.WriteLine("done!");
        }
Esempio n. 5
0
 public static extern void setCallbackStpnt(StpntCallBack cb);
Esempio n. 6
0
        internal void SetupUsingModel(IModel oCurrentModel)
        {
            if (oCurrentModel == null)
                throw new ArgumentNullException("oCurrentModel", "Need to load SBML file first.");

            setupControl1.CurrentConfig.NDIM = oCurrentModel.y.Length;

            _InitializationCallBack = ModelInitializationCallback;
            _FunctionCallBack = ModelFunctionCallback;
            //_BCNDCallBack = new BcndCallBack(ModelBcndCallBack);
            //_IcndCallBack = new IcndCallBack(ModelIcndCallBack);
            //_FoptCallBack = new FoptCallBack(ModelFoptCallBack);
            //_PvlsCallBack = new PvlsCallBack(ModelPvlsCallBack);

            AutoInterface.setCallbackStpnt(_InitializationCallBack);
            AutoInterface.setCallbackFunc2(_FunctionCallBack);
            //AutoInterface.setCallbackBcnd(_BCNDCallBack);
            //AutoInterface.setCallbackIcnd(_IcndCallBack);
            //AutoInterface.setCallbackFopt(_FoptCallBack);
            //AutoInterface.setCallbackPvls(_PvlsCallBack);
        }
Esempio n. 7
0
 public static extern void setCallbackStpnt(StpntCallBack cb);