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
-
I am working on some refactoring of the FATES derived types (i.e.
site
,patch
, andcohort
types). 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
EDCohortDynamicsMod
andEDPatchDynamicsMod
there 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_cohort
patch
method to meInitPRTObject
PRT
method to meterminate_cohorts
terminate_cohort
(see below) and deallocates memory for each one marked for deletionpatch
method (definitely NOT atcohort
method) to me, or perhaps we should put it in some other kind of moduleterminate_cohort
DeallocateCohort
on that cohort (see below)patch
methods, or perhaps in some other moduleSendCohortToLitter
litter
pointer and the site'sflux_diags
pointerDeallocateCohort
cohort
method to mefuse_cohorts
patch
methods?) andcohort
methods?)sort_cohorts
patch
methods to meinsert_cohort
patch
methodscopy_cohort
cohort
methodscount_cohorts
patch
methodsEvaluateAndCorrectDBH
cohort
methods?DamageRecovery
Beta Was this translation helpful? Give feedback.
All reactions