File size: 1,718 Bytes
b1b3bae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#region Copyright © 2009 Jose Antonio De Santiago-Castillo.

//Copyright © 2009 Jose Antonio De Santiago-Castillo 
//E-mail:JAntonioDeSantiago@gmail.com
//Web: www.DotNumerics.com
//
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace DotNumerics.FortranLibrary
{
    public class CommonBlock
    {
        #region Fields

        //private string MeName = "";

        private Odouble[] MeDoubleData;
        private Oint[] MeIntData;

        #endregion

        #region Constructor

        public CommonBlock(int DimensionDouble, int DimensionInt, int DimensionSingle, int DimensionComplex)
        {
            //this.MeName = TheName;
            if (DimensionDouble > 0)
            {
                this.MeDoubleData = new Odouble[DimensionDouble];

                for (int i = 0; i < DimensionDouble; i++)
                {
                    MeDoubleData[i] = new Odouble();
                }
            }
            if (DimensionInt > 0)
            {
                this.MeIntData = new Oint[DimensionInt];

                for (int i = 0; i < DimensionInt; i++)
                {
                    MeIntData[i] = new Oint();
                }
            }
        }

        #endregion

        #region Properties

        public Odouble[] doubleData
        {
            get { return this.MeDoubleData; }
            set { this.MeDoubleData = value; }
        }

        public Oint[] intData
        {
            get { return this.MeIntData; }
            set { this.MeIntData = value; }
        }

        #endregion

        #region Methods


        #endregion

    }
}