Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] Diff of /trunk/gadget/grower.h
[mareframe] / trunk / gadget / grower.h Repository:
ViewVC logotype

Diff of /trunk/gadget/grower.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1, Mon Feb 10 17:09:07 2014 UTC revision 12, Fri Jul 24 18:36:24 2015 UTC
# Line 10  Line 10 
10  #include "formulavector.h"  #include "formulavector.h"
11  #include "keeper.h"  #include "keeper.h"
12  #include "growthcalc.h"  #include "growthcalc.h"
13    #include "matrix.h"
14    
15  /**  /**
16   * \class Grower   * \class Grower
# Line 91  Line 92 
92     * \param area is the area that the growth is being calculated on     * \param area is the area that the growth is being calculated on
93     * \return lgrowth, a DoubleMatrix containing the length increase     * \return lgrowth, a DoubleMatrix containing the length increase
94     */     */
95    const DoubleMatrix& getLengthIncrease(int area) const { return *lgrowth[this->areaNum(area)]; };  //  const DoubleMatrix& getLengthIncrease(int area) const { return *lgrowth[this->areaNum(area)]; };
96      const Matrix& getLengthIncrease(int area) const { return *lgrowth; };
97    /**    /**
98     * \brief This function will return the calculated weight increase due to growth on an area     * \brief This function will return the calculated weight increase due to growth on an area
99     * \param area is the area that the growth is being calculated on     * \param area is the area that the growth is being calculated on
100     * \return wgrowth, a DoubleMatrix containing the weight increase     * \return wgrowth, a DoubleMatrix containing the weight increase
101     */     */
102    const DoubleMatrix& getWeightIncrease(int area) const { return *wgrowth[this->areaNum(area)]; };  //  const DoubleMatrix& getWeightIncrease(int area) const { return *wgrowth[this->areaNum(area)]; };
103      const Matrix& getWeightIncrease(int area) const { return *wgrowth; };
104    /**    /**
105     * \brief This function will return the fixed weight increase due to growth on an area     * \brief This function will return the fixed weight increase due to growth on an area
106     * \param area is the area that the growth is being calculated on     * \param area is the area that the growth is being calculated on
# Line 118  Line 121 
121     * \brief This is the LengthGroupDivision used to store length information     * \brief This is the LengthGroupDivision used to store length information
122     */     */
123    LengthGroupDivision* LgrpDiv;    LengthGroupDivision* LgrpDiv;
124    
125      /**
126       * \brief This array of doubles store the raising mean length of all the group to the power term of the length
127       */
128      double * meanlength_vectorPow;
129      int vector_OK;
130    
131    /**    /**
132     * \brief This is the ConversionIndex used to convert from the stock LengthGroupDivision to the LengthGroupDivision used for the growth calculation     * \brief This is the ConversionIndex used to convert from the stock LengthGroupDivision to the LengthGroupDivision used for the growth calculation
133     */     */
# Line 133  Line 143 
143     */     */
144    DoubleMatrix interpWeightGrowth;    DoubleMatrix interpWeightGrowth;
145    /**    /**
146     * \brief This is the DoubleMatrix used to store the calculated increase in length on the current timestep     * \brief This is the Matrix of doubles used to store the calculated increase in length on the current timestep
147     * \note The indices for this object are [area][length]     * \note The indices for this object are [area][length]
148     */     */
149    DoubleMatrix calcLengthGrowth;    Matrix calcLengthGrowth;
150    /**    /**
151     * \brief This is the DoubleMatrix used to store the calculated increase in weight on the current timestep     * \brief This is the Matrix of doubles used to store the calculated increase in weight on the current timestep
152     * \note The indices for this object are [area][length]     * \note The indices for this object are [area][length]
153     */     */
154    DoubleMatrix calcWeightGrowth;    Matrix calcWeightGrowth;
155    /**    /**
156     * \brief This is the DoubleMatrixPtrVector used to store the calculated increase in length for each length group on the current timestep     * \brief This is the DoubleMatrixPtrVector used to store the calculated increase in length for each length group on the current timestep
157     * \note The indices for this object are [area][change in length][stock length]     * \note The indices for this object are [area][change in length][stock length]
158     */     */
159    DoubleMatrixPtrVector lgrowth;  //  DoubleMatrixPtrVector lgrowth;
160      Matrix* lgrowth;
161    /**    /**
162     * \brief This is the DoubleMatrixPtrVector used to store the calculated increase in weight for each length group on the current timestep     * \brief This is the DoubleMatrixPtrVector used to store the calculated increase in weight for each length group on the current timestep
163     * \note The indices for this object are [area][change in length][stock length]     * \note The indices for this object are [area][change in length][stock length]
164     */     */
165    DoubleMatrixPtrVector wgrowth;  //  DoubleMatrixPtrVector wgrowth;
166      Matrix* wgrowth;
167    /**    /**
168     * \brief This is the dummy DoubleVector used during the growth calculation     * \brief This is the dummy DoubleVector used during the growth calculation
169     * \note The values of this vector are set to zero, and never used, unless the growth function depends on the feeding level of the stock (ie. growth is based on consumption of preys)     * \note The values of this vector are set to zero, and never used, unless the growth function depends on the feeding level of the stock (ie. growth is based on consumption of preys)

Legend:
Removed from v.1  
changed lines
  Added in v.12

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge