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 2, Wed Apr 29 12:55:30 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      //FIXME
126      double * meanlength_vectorPow;
127    
128      int vector_OK;
129    
130    /**    /**
131     * \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
132     */     */
# Line 136  Line 145 
145     * \brief This is the DoubleMatrix used to store the calculated increase in length on the current timestep     * \brief This is the DoubleMatrix used to store the calculated increase in length on the current timestep
146     * \note The indices for this object are [area][length]     * \note The indices for this object are [area][length]
147     */     */
148    DoubleMatrix calcLengthGrowth;  //  DoubleMatrix calcLengthGrowth;
149      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 DoubleMatrix 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;  //  DoubleMatrix calcWeightGrowth;
155      Matrix _calcWeightGrowth;
156    /**    /**
157     * \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
158     * \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]
159     */     */
160    DoubleMatrixPtrVector lgrowth;  //  DoubleMatrixPtrVector lgrowth;
161      Matrix* _lgrowth;
162    /**    /**
163     * \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
164     * \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]
165     */     */
166    DoubleMatrixPtrVector wgrowth;  //  DoubleMatrixPtrVector wgrowth;
167      Matrix* _wgrowth;
168    /**    /**
169     * \brief This is the dummy DoubleVector used during the growth calculation     * \brief This is the dummy DoubleVector used during the growth calculation
170     * \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.2

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

Powered By FusionForge