コード例 #1
0
        internal Unsatzone(PFSSection Section)
        {
            _pfsHandle = Section;

            for (int i = 1; i <= Section.GetSectionsNo(); i++)
            {
                PFSSection sub = Section.GetSection(i);
                switch (sub.Name)
                {
                case "UZSoilProfiles":
                    _uZSoilProfiles = new UZSoilProfiles(sub);
                    break;

                case "TwoLayerUZSoilProperties":
                    _twoLayerUZSoilProperties = new TwoLayerUZSoilProperties(sub);
                    break;

                case "ETSurfaceDepth":
                    _eTSurfaceDepth = new Topography(sub);
                    break;

                case "Macropore_Transfer_Coeff":
                    _macropore_Transfer_Coeff = new InitialMass(sub);
                    break;

                case "Decay_Processes":
                    _decay_Processes = new InitialMass(sub);
                    break;

                case "Sorption_Processes":
                    _sorption_Processes = new InitialMass(sub);
                    break;

                case "UZGroundWaterDepthList":
                    _uZGroundWaterDepthList = new UZGroundWaterDepthList(sub);
                    break;

                case "Initial_Conditions":
                    _initial_Conditions = new Initial_Conditions(sub);
                    break;

                case "SpecifiedClassification":
                    _specifiedClassification = new Topography(sub);
                    break;

                case "PartialAutomatic":
                    _partialAutomatic = new Topography(sub);
                    break;

                default:
                    _unMappedSections.Add(sub.Name);
                    break;
                }
            }
        }
コード例 #2
0
ファイル: Unsatzone.cs プロジェクト: XiBeichuan/hydronumerics
    internal Unsatzone(PFSSection Section)
    {
      _pfsHandle = Section;

      for (int i = 1; i <= Section.GetSectionsNo(); i++)
      {
        PFSSection sub = Section.GetSection(i);
        switch (sub.Name)
        {
        case "UZSoilProfiles":
          _uZSoilProfiles = new UZSoilProfiles(sub);
          break;
        case "TwoLayerUZSoilProperties":
          _twoLayerUZSoilProperties = new TwoLayerUZSoilProperties(sub);
          break;
        case "ETSurfaceDepth":
          _eTSurfaceDepth = new Topography(sub);
          break;
        case "Macropore_Transfer_Coeff":
          _macropore_Transfer_Coeff = new InitialMass(sub);
          break;
        case "Decay_Processes":
          _decay_Processes = new InitialMass(sub);
          break;
        case "Sorption_Processes":
          _sorption_Processes = new InitialMass(sub);
          break;
        case "UZGroundWaterDepthList":
          _uZGroundWaterDepthList = new UZGroundWaterDepthList(sub);
          break;
        case "Initial_Conditions":
          _initial_Conditions = new Initial_Conditions(sub);
          break;
        case "SpecifiedClassification":
          _specifiedClassification = new Topography(sub);
          break;
        case "PartialAutomatic":
          _partialAutomatic = new Topography(sub);
          break;
          default:
            _unMappedSections.Add(sub.Name);
          break;
        }
      }
    }