9 #ifndef simulation_2MultiT_hpp 10 #define simulation_2MultiT_hpp 20 int initial_position(
int j,
double *x,
double *x0,
double Raggio,
int num_dist,
int &cont_dist_5,
int delta_dist_cont,
double Delta_delta_dist);
25 int simulation_2(
E_coli *batterio,
double T_f,
Funz_C *f,
double *x0,
double dt,
int n_c,
double Raggio,
int delta_dist,
int num_dist,
int const_salv, std::string *names_files_Ecoli_mod, std::string names_indice_mod, std::string *names_files_tau_mod, std::string names_file_dyn_mod, std::string *names_info_mod,
int n_sim,
int cont_gen_sim,
int tot_bacteria,
int n_thread = 1);
27 void startThreadSimulation(
E_coli *batterio,
double T_f,
Funz_C *f,array<double,2> x0,
double dt,
int n_c,
double Raggio,
int delta_dist,
int num_dist,
int const_salv,
string *names_files_Ecoli_mod,
string names_indice_mod,
string *names_files_tau_mod,
string names_file_dyn_mod,
string *names_info_mod,
int n_sim,
int cont_gen_sim,
int n_thread,
int& dim_colonne);
31 int simulation_2MultiT(
E_coli *batterio,
double T_f,
Funz_C *f,
double *x0,
double dt,
int n_c,
double Raggio,
int delta_dist,
int num_dist,
int const_salv,
string *names_files_Ecoli_mod,
string names_indice_mod,
string *names_files_tau_mod,
string names_file_dyn_mod,
string *names_info_mod,
int n_sim,
int cont_gen_sim,
int n_thread);
35 int mergeFilesSimulation(
int n_thread,
string *names_files_Ecoli_mod,
string names_indice_mod,
string *names_files_tau_mod,
string names_file_dyn_mod);
string setNametempFiles(string name, int n_thread)
set the name of the temporary files ...
Definition: simulation_2MultiT.cpp:159
void makeDuplicate(E_coli *batterio, vector< E_coli * > &batterioCopy, Funz_C *f, vector< Funz_C * > &fCopy, int n_thread)
This function create a duplicate of the base bacterium and f_c:
Definition: simulation_2MultiT.cpp:421
int simulation_2MultiT(E_coli *batterio, double T_f, Funz_C *f, double *x0, double dt, int n_c, double Raggio, int delta_dist, int num_dist, int const_salv, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod, string *names_info_mod, int n_sim, int cont_gen_sim, int n_thread)
Function that performs the actual simulation of independent population.
Definition: simulation_2MultiT.cpp:67
Base Class for a bacterium: It implements the virtual function to evolve the dynamic of the bacterium...
Definition: E_Coli.h:63
int mergeFilesSimulation(int n_thread, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod)
This function merges the files together.
Definition: simulation_2MultiT.cpp:536
int simulation_2(E_coli *batterio, double T_f, Funz_C *f, double *x0, double dt, int n_c, double Raggio, int delta_dist, int num_dist, int const_salv, std::string *names_files_Ecoli_mod, std::string names_indice_mod, std::string *names_files_tau_mod, std::string names_file_dyn_mod, std::string *names_info_mod, int n_sim, int cont_gen_sim, int tot_bacteria, int n_thread=1)
int initial_position(int j, double *x, double *x0, double Raggio, int num_dist, int &cont_dist_5, int delta_dist_cont, double Delta_delta_dist)
Definition: initial_distribution.cpp:22
#define n_val_termine
Definition: simulation_2.cpp:48
int Stima_tempo(int n_c, int n_val_termine, int &j_cel_finale, int &j_cel_inizio, time_t timer1)
Definition: Stima_tempo.cpp:19
Base class for the function describing the ligand concentration.
Definition: Funz_C.h:76
void funz_clear()
Definition: clear_Bild.cpp:9
void startThreadSimulation(E_coli *batterio, double T_f, Funz_C *f, array< double, 2 > x0, double dt, int n_c, double Raggio, int delta_dist, int num_dist, int const_salv, string *names_files_Ecoli_mod, string names_indice_mod, string *names_files_tau_mod, string names_file_dyn_mod, string *names_info_mod, int n_sim, int cont_gen_sim, int n_thread, int &dim_colonne)
Definition: simulation_2MultiT.cpp:171
void timestamp()
Definition: timestamp.cpp:13