diff --git a/inst/include/population_dynamics/fleet/fleet.hpp b/inst/include/population_dynamics/fleet/fleet.hpp index 5226c4802..8681935df 100644 --- a/inst/include/population_dynamics/fleet/fleet.hpp +++ b/inst/include/population_dynamics/fleet/fleet.hpp @@ -163,7 +163,7 @@ struct Fleet : public fims_model_object::FIMSObject { for (size_t y = 0; y < this->nyears; y++) { // EigenVector declares a vector type from the Eigen library, which is // the expected type for TMB's dmultinom - using Vector = typename fims::fims::Vector; + using Vector = typename fims::Vector; Vector observed_acomp; Vector expected_acomp; diff --git a/inst/include/population_dynamics/population/population.hpp b/inst/include/population_dynamics/population/population.hpp index e4a057112..4697c0cb2 100644 --- a/inst/include/population_dynamics/population/population.hpp +++ b/inst/include/population_dynamics/population/population.hpp @@ -22,7 +22,7 @@ #include "../../interface/interface.hpp" #include "../maturity/maturity.hpp" -namespace fims { +namespace fims_popdy { /*TODO: Review, add functions to evaluate, push vectors back to fleet (or point to fleet directly?) @@ -86,22 +86,22 @@ struct Population : public fims_model_object::FIMSObject { fims::Vector expected_recruitment; /*!< Expected recruitment */ /// recruitment int recruitment_id = -999; /*!< id of recruitment model object*/ - std::shared_ptr> + std::shared_ptr> recruitment; /*!< shared pointer to recruitment module */ // growth int growth_id = -999; /*!< id of growth model object*/ - std::shared_ptr> + std::shared_ptr> growth; /*!< shared pointer to growth module */ // maturity int maturity_id = -999; /*!< id of maturity model object*/ - std::shared_ptr> + std::shared_ptr> maturity; /*!< shared pointer to maturity module */ // fleet int fleet_id = -999; /*!< id of fleet model object*/ - std::vector>> + std::vector>> fleets; /*!< shared pointer to fleet module */ // Define objective function object to be able to REPORT and ADREPORT