EcoliSimulator  2.0.1a
writeHistToFileMultiT.cpp File Reference
#include "writeHistToFileMultiT.hpp"
#include "Colori.h"
#include "LoadBar.hpp"
#include "Funz_C.h"
#include <system_error>
#include <sstream>
#include <iostream>
#include <fstream>
#include <cmath>
#include <thread>
#include <array>

Macros

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

Functions

int writeLog (std::string what, string msg)
 
void writeHistToFileMultiT (double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonn, const int &cont_sim, const int &n_dx, const int &n_dy, const int &n_c, const double &min_x, const double &min_y, const double &dx, const double &dy, vector< vector< double > > &x, vector< vector< double > > &y, const int &n_x_min, const int &n_x_max, const int &n_y_min, const int &n_y_max, int &max_z, int n_thread)
 This function write the histogram of the density to file: multithread. More...
 
void startThred_writeHist (const int start_for, const int end_for, const int update_for, const int cont_sim, const int n_c, const int n_dx, const int n_dy, const double dx, const double dy, const int n_x_min, const int n_x_max, const int n_y_min, const int n_y_max, const double min_x, const double min_y, double delta_y_p, double delta_x_p, const double delta_y_p_init, const double delta_x_p_init, vector< vector< double > > &x, vector< vector< double > > &y, int &max_z_local, bool display)
 implements the loop over time for the given thred More...
 
void writeFunzCToFileMultiT (double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonn, const int cont_sim, const int n_dx, const int n_dy, const double min_x, const double min_y, const double dx, const double dy, const int n_x_min, const int n_x_max, const int n_y_min, const int n_y_max, double &maxC, const double Dt, Funz_C *f, int n_thread)
 it writes the histogram of the function c to file: multithread. More...
 
void startThred_writeFunC (const int start_for, const int end_for, const int update_for, const int cont_sim, const double dx, const double dy, const int n_x_min, const int n_x_max, const int n_y_min, const int n_y_max, const double min_x, const double min_y, double delta_y_p, double delta_x_p, const double delta_y_p_init, const double delta_x_p_init, double Dt, Funz_C *f, double &maxC)
 implements the loop over time for the given thred More...
 

Macro Definition Documentation

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

Function Documentation

void startThred_writeFunC ( const int  start_for,
const int  end_for,
const int  update_for,
const int  cont_sim,
const double  dx,
const double  dy,
const int  n_x_min,
const int  n_x_max,
const int  n_y_min,
const int  n_y_max,
const double  min_x,
const double  min_y,
double  delta_y_p,
double  delta_x_p,
const double  delta_y_p_init,
const double  delta_x_p_init,
double  Dt,
Funz_C f,
double &  maxC 
)

implements the loop over time for the given thred

NOTE: remember that here n_dx+n_x_max = n_x_max

void startThred_writeHist ( const int  start_for,
const int  end_for,
const int  update_for,
const int  cont_sim,
const int  n_c,
const int  n_dx,
const int  n_dy,
const double  dx,
const double  dy,
const int  n_x_min,
const int  n_x_max,
const int  n_y_min,
const int  n_y_max,
const double  min_x,
const double  min_y,
double  delta_y_p,
double  delta_x_p,
const double  delta_y_p_init,
const double  delta_x_p_init,
vector< vector< double > > &  x,
vector< vector< double > > &  y,
int &  max_z_local,
bool  display 
)

implements the loop over time for the given thred

void writeFunzCToFileMultiT ( double  delta_y_p,
double  delta_x_p,
int  dim_col_t,
int  n_salti_colonn,
const int  cont_sim,
const int  n_dx,
const int  n_dy,
const double  min_x,
const double  min_y,
const double  dx,
const double  dy,
const int  n_x_min,
const int  n_x_max,
const int  n_y_min,
const int  n_y_max,
double &  maxC,
const double  Dt,
Funz_C f,
int  n_thread 
)

it writes the histogram of the function c to file: multithread.

void writeHistToFileMultiT ( double  delta_y_p,
double  delta_x_p,
int  dim_col_t,
int  n_salti_colonn,
const int &  cont_sim,
const int &  n_dx,
const int &  n_dy,
const int &  n_c,
const double &  min_x,
const double &  min_y,
const double &  dx,
const double &  dy,
vector< vector< double > > &  x,
vector< vector< double > > &  y,
const int &  n_x_min,
const int &  n_x_max,
const int &  n_y_min,
const int &  n_y_max,
int &  max_z,
int  n_thread 
)

This function write the histogram of the density to file: multithread.

int writeLog ( std::string  what,
string  msg 
)