Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large functions #446

Open
zebmason opened this issue Aug 4, 2020 · 0 comments
Open

Large functions #446

zebmason opened this issue Aug 4, 2020 · 0 comments

Comments

@zebmason
Copy link
Contributor

zebmason commented Aug 4, 2020

Just developing some new tooling and have attached some results for the number of lines in the functions at
commit 87127e7
Date: Mon Aug 3 11:29:31 2020 +0100
Merge pull request #443 from mrc-ide/wes/header_guards Use guards instead of pragma once

ReadParams(const std::string &, const std::string &, const std::string &) 1655
SetupPopulation(const std::string &, const std::string &, const std::string &, const std::string &) 801
InfectSweep(double, int) 676
SaveSummaryResults(const std::string &) 670
TreatSweep(double) 596
SetupModel(const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, const std::string &) 541
AssignPeopleToPlaces() 480
RecordSample(double, int, const std::string &) 465
InitModel(int) 368
DigitalContactTracingSweep(double) 338
SaveResults(const std::string &) 306
main(int, char **) 291
DoDetectedCase(int, double, unsigned short, int) 265
ignbin_mt(int32_t, double, int) 263
ignpoi_mt(double, int) 235
ReadInterventions(const std::string &) 208
CalibrationThresholdCheck(double, int) 208
TravelDepartSweep(double) 200
RunModel(int, const std::string &, const std::string &, const std::string &) 195
GetInputParameter3(FILE *, const char *, const char *, void *, int, int, int) 190
SetupAirports() 175
AssignHouseholdAges(int, int, int, bool) 169
RecordInfTypes() 163
CalcLikelihood(int, const std::string &, const std::string &) 155
InitTransmissionCoeffs() 153
ReadAirTravel(const std::string &, const std::string &) 146
DoPlaceClose(int, int, unsigned short, int, int) 145
SampleWithoutReplacement(int, int, int) 136
StratifyPlaces() 135
snorm() 128
snorm_mt(int) 128
SeedInfection(double, int *, int, int) 121
DoIncub(int, unsigned short, int, int) 117
CalcOriginDestMatrix_adunit() 105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant