Skip to content

Commit

Permalink
style: run clang format (#460)
Browse files Browse the repository at this point in the history
Co-authored-by: ChristineStawitz-NOAA <ChristineStawitz-NOAA@users.noreply.github.com>
  • Loading branch information
1 parent 69241a7 commit 516398a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions inst/include/distributions/functors/tmb_distributions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct Dlnorm : public DistributionsBase<T> {
T x; /*!< observation */
T meanlog; /*!< mean of the distribution of log(x) */
T sdlog; /*!< standard deviation of the distribution of log(x) */

Dlnorm() : DistributionsBase<T>() {}

/**
Expand All @@ -94,7 +94,7 @@ struct Dlnorm : public DistributionsBase<T> {
T nll;

nll = dnorm(logx, meanlog, sdlog, true) - logx;

if (do_log) {
return nll;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class BevertonHoltRecruitmentInterface : public RecruitmentInterfaceBase {
Parameter logit_steep; /**< steepness or the productivity of the stock*/
Parameter log_rzero; /**< recruitment at unfished biomass */
Parameter log_sigma_recruit; /**< the log of the stock recruit deviations */
Rcpp::NumericVector deviations; /**< recruitment deviations*/
Rcpp::NumericVector deviations; /**< recruitment deviations*/
bool estimate_deviations =
false; /**< boolean describing whether to estimate */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct RecruitmentBase : public FIMSObject<Type> {
recruit_deviations; /*!< A vector of recruitment deviations */
bool constrain_deviations = false; /*!< A flag to indicate if recruitment
deviations are summing to zero or not */

Type log_sigma_recruit; /*!< Log standard deviation of log recruitment
deviations */
Type log_rzero; /*!< Log of unexploited recruitment.*/
Expand All @@ -54,9 +54,7 @@ struct RecruitmentBase : public FIMSObject<Type> {
* @brief Prepares the recruitment deviations vector.
*
*/
void Prepare() {
this->PrepareConstrainedDeviations();
}
void Prepare() { this->PrepareConstrainedDeviations(); }

/** @brief Calculates the expected recruitment for a given spawning input.
*
Expand Down Expand Up @@ -113,7 +111,6 @@ struct RecruitmentBase : public FIMSObject<Type> {
FIMS_LOG << this->recruit_deviations[i] << std::endl;
}
}

};

template <class Type>
Expand Down

0 comments on commit 516398a

Please sign in to comment.