EcoliSimulator  2.0.1a
simulation_indipendent_2.cpp File Reference
#include <iostream>
#include <thread>
#include <sstream>
#include "GlobalVariables.h"
#include "sssr.h"
#include "CV_rExp_tExp.h"
#include "E_Coli.h"
#include "ParameterEstimation_E_Coli.h"
#include "CV_rIG_tExp.h"
#include "Funz_C.h"
#include <vector>
#include <fstream>
#include "Colori.h"
#include "simulation_2MultiT.hpp"

Macros

#define min_(a, b)   ( ((a) < (b)) ? (a) : (b) )
 

Functions

void timestamp ()
 
void print_and_open_info (string name, E_coli *batterio, Funz_C *f, double T_f, double *x0, double dt, int n_c, double Raggio, int delta_dist, int num_dist, int const_salv, int cont_gen_sim)
 
int simulation_2 (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 tot_bacteria, int n_thread)
 
int writeLog (string what, string msg)
 this function write to the Log file. More...
 
int simulation_independent_setting (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_Ecoli_mod, string names_indice_mod, string *names_tau_mod, string names_file_dyn_mod, string *names_info_mod, int i, int &cont_gen_sim)
 

Macro Definition Documentation

#define min_ (   a,
 
)    ( ((a) < (b)) ? (a) : (b) )

Function Documentation

void print_and_open_info ( string  name,
E_coli batterio,
Funz_C f,
double  T_f,
double *  x0,
double  dt,
int  n_c,
double  Raggio,
int  delta_dist,
int  num_dist,
int  const_salv,
int  cont_gen_sim 
)

This function produce a general summary for the LateX file. In this function the remaining information are compliting by calling the virtual function print_info in E_coli

int simulation_2 ( 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  tot_bacteria,
int  n_thread 
)
int simulation_independent_setting ( 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_Ecoli_mod,
string  names_indice_mod,
string *  names_tau_mod,
string  names_file_dyn_mod,
string *  names_info_mod,
int  i,
int &  cont_gen_sim 
)

Function call to set the parameter of the bacteria: afterwords it start the simulation

void timestamp ( )
int writeLog ( string  what,
string  msg 
)

this function write to the Log file.