Skip to content

Commit

Permalink
merge conflict fixed (minor things)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Di Lauro committed Oct 11, 2024
2 parents 4d46c88 + 35b2e4f commit a4eb516
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@

#define WRITE_PARTNERSHIPS_AT_PC0 0 /* Generates Distr_n_lifetime_partners and Distr_n_partners_lastyear csv files. NEEDED FOR ReadAnnualOutputs-knitr.Rnw. */

#define FOLLOW_INDIVIDUAL -1 //23727 // 30295 // 28101 // -1 // 1972 // 2727 // 267 // 4328 // if -1 then normal run, otherwise printing things and checking everything that happens to an individual with a certain ID
#define FOLLOW_INDIVIDUAL 0 //23727 // 30295 // 28101 // -1 // 1972 // 2727 // 267 // 4328 // if -1 then normal run, otherwise printing things and checking everything that happens to an individual with a certain ID

#define FOLLOW_PATCH 0 //1
#define FOLLOW_PATCH 1 //1

#define WRITE_COST_EFFECTIVENESS_OUTPUT 0 /* Generates a new file cost_effectiveness_$.csv */
#define WRITE_TREATS_OUTPUT 0 // Generates output for aligning the model with that used in the TREATS clinical trial.
Expand Down Expand Up @@ -143,7 +143,7 @@ gsl_rng * rng;
#define ROLL_OUT_CHIPS_INSIDE_PATCH 1
#define T_STOP_ROLLOUT_CHIPS_INSIDE_PATCH 2030 /* When to stop roll out of CHiPs to inside patch */

#define ALLOW_COUNTERFACTUAL_ROLLOUT 0 /* Should post-PopART rollout of CHiPs be allowed in counterfactual simulations? Defaul is that it's switched off*/
#define ALLOW_COUNTERFACTUAL_ROLLOUT 1 /* Should post-PopART rollout of CHiPs be allowed in counterfactual simulations? Defaul is that it's switched off*/

/************************************************************************/
/***************************** Settings ***************************/
Expand Down
2 changes: 1 addition & 1 deletion src/hiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2271,7 +2271,7 @@ void draw_hiv_tests(parameters *param, age_list_struct *age_list, int year,
// For each individual in that annual age group, schedule their first HIV test
for(k = 0; k < age_list->age_list_by_gender[g]->number_per_age_group[aa]; k++){
// Only schedule tests for people who are not "HIV+ and aware of serostatus" or, after UTT implemented, for everyone including dropouts
if(age_list->age_list_by_gender[g]->age_group[aa][k]->ART_status == ARTNEG || (year<= param->COUNTRY_IMMEDIATE_ART_START && age_list->age_list_by_gender[g]->age_group[aa][k]->ART_status == ARTDROPOUT)){
if(age_list->age_list_by_gender[g]->age_group[aa][k]->ART_status == ARTNEG || (year>= param->COUNTRY_IMMEDIATE_ART_START && age_list->age_list_by_gender[g]->age_group[aa][k]->ART_status == ARTDROPOUT)){

schedule_hiv_test_fixedtime(age_list->age_list_by_gender[g]->age_group[aa][k],
param, year, cascade_events, n_cascade_events, size_cascade_events,
Expand Down
5 changes: 3 additions & 2 deletions src/interventions.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ void carry_out_chips_visits_per_timestep(int t0, int t_step, patch_struct *patch
}

}else{

/* Send the address (ie pointer) to this person. */
chips_visit_person(&(patch[p].individual_population[patch[p].chips_sample->list_ids_to_visit[g][ac][i]]),
patch[p].cumulative_outputs,
Expand Down Expand Up @@ -574,9 +573,11 @@ void chips_visit_person(individual *indiv, cumulative_outputs_struct *cumulative
fflush(stdout);
exit(1);
}

if(indiv->cd4 == DUMMYVALUE){
printf("Trying to CHiPS visit a non-existent person %d %ld !!! Exiting\n", p, indiv->id);

printf("at time t=%f\n",t);
printf("At chips round %d", chips_round);
printf("LINE %d; FILE %s\n", __LINE__, __FILE__);
fflush(stdout);
exit(1);
Expand Down

0 comments on commit a4eb516

Please sign in to comment.