EcoliSimulator  2.0.1a
simulation_2MultiT.cpp File Reference
#include <iostream>
#include <vector>
#include <fstream>
#include <cmath>
#include <sstream>
#include <thread>
#include <system_error>
#include <sys/stat.h>
#include "GlobalVariables.h"
#include <cstring>
#include "simulation_2MultiT.hpp"
#include <unistd.h>
#include "CV_rExp_tExp.h"
#include "CV_rIG_tExp.h"
#include "CV_rExpIG_tExp.h"
#include "EO_rExp_tExp.h"
#include "EO_rIG_tExp.h"
#include "EO_rExpIG_tExp.h"
#include "Molecular_rExp_tExp.h"
#include "Molecular_rExpIG_tExp.h"
#include "Molecular_rIG_tExp.h"
#include "ParameterEstimation_CV_rExp_tExp.h"
#include "ParameterEstimation_CV_rIG_tExp.h"
#include "GlobalRandomVariables.h"
#include "constants.h"

Macros

#define max(a, b)   ( ((a) > (b)) ? (a) : (b) )
 
#define min(a, b)   ( ((a) < (b)) ? (a) : (b) )
 
#define n_val_termine   200
 

Functions

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. More...
 
string setNametempFiles (string name, int n_thread)
 set the name of the temporary files ... More...
 
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_line_save)
 
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: More...
 
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. More...
 

Macro Definition Documentation

#define max (   a,
 
)    ( ((a) > (b)) ? (a) : (b) )
#define min (   a,
 
)    ( ((a) < (b)) ? (a) : (b) )
#define n_val_termine   200

Function Documentation

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:

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.

string setNametempFiles ( string  name,
int  n_thread 
)

set the name of the temporary files ...

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.

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_line_save 
)

start a thread of simulation.