Refactoring of cohort and patch subroutines #1016
adrifoster
started this conversation in
Ideas
Replies: 1 comment
-
|
Thanks @adrifoster this looks great. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on some refactoring of the FATES derived types (i.e.
site,patch, andcohorttypes). See my WIP branch here.I am planning on moving some of the methods associated with patches and cohorts into modules for those types. Right now, in the modules
EDCohortDynamicsModandEDPatchDynamicsModthere seem to be subroutines that should belong cohorts or patches (or sites).@glemieux suggested I put them up here with my thoughts so others can chime in:
@ckoven, @rgknox, @rosiealice, @billsacks, @mpaiao, @JessicaNeedham, @jkshuman
In EDCohortDynamicsMod (for now just focusing on these b/c there are a lot...):
create_cohortpatchmethod to meInitPRTObjectPRTmethod to meterminate_cohortsterminate_cohort(see below) and deallocates memory for each one marked for deletionpatchmethod (definitely NOT atcohortmethod) to me, or perhaps we should put it in some other kind of moduleterminate_cohortDeallocateCohorton that cohort (see below)patchmethods, or perhaps in some other moduleSendCohortToLitterlitterpointer and the site'sflux_diagspointerDeallocateCohortcohortmethod to mefuse_cohortspatchmethods?) andcohortmethods?)sort_cohortspatchmethods to meinsert_cohortpatchmethodscopy_cohortcohortmethodscount_cohortspatchmethodsEvaluateAndCorrectDBHcohortmethods?DamageRecoveryBeta Was this translation helpful? Give feedback.
All reactions