EcoliSimulator  2.0.1a
histogram3DMultiThreadV2.hpp
Go to the documentation of this file.
1 //
2 // histogram3DMultiThreadV2.hpp
3 // Ecoli_4.1.5
4 //
5 // Created by Stefano Belloni on 22/05/16.
6 // Copyright © 2016 Stefano Belloni. All rights reserved.
7 //
8 
9 #ifndef histogram3DMultiThreadV2_hpp
10 #define histogram3DMultiThreadV2_hpp
11 
12 #include <stdio.h>
13 #include <vector>
14 #include "Funz_C.h"
15 #include <fstream>
16 #include "Colori.h"
17 #include <cmath>
18 #include <iostream>
19 #include <thread>
21 
22 
23 void writeFunzCToFile(double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonne,
24  const int cont_sim, const int n_dx, const int n_dy,
25  const double min_x, const double min_y,
26  const double dx, const double dy,
27  const int n_x_min, const int n_x_max,
28  const int n_y_min, const int n_y_max,
29  double& maxC,
30  const double Dt,
31  Funz_C *f);
32 
33 void startThred_writeHist(const int start_for, const int end_for, const int update_for,
34  const int cont_sim, const int n_c, const int n_dx, const int n_dy,
35  const double dx, const double dy,
36  const int n_x_min, const int n_x_max,
37  const int n_y_min, const int n_y_max,
38  const double min_x, const double min_y,
39  double delta_y_p, double delta_x_p,
40  const double delta_y_p_init,
41  const double delta_x_p_init,
42  std::vector<std::vector<double> >& x,std::vector<std::vector<double> >& y,
43  int& max_z_local, bool display);
44 
45 void writeHistToFile(double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonne,
46  const int& cont_sim, const int& n_dx, const int& n_dy, const int& n_c,
47  const double& min_x, const double& min_y,
48  const double& dx, const double& dy,
49  std::vector<std::vector<double> >& x,std::vector<std::vector<double> >& y,
50  const int& n_x_min, const int& n_x_max,
51  const int& n_y_min, const int& n_y_max,
52  int &max_z);
53 
54 double histogram_3D_gnuplotV2MultiThreadV2(double max_x, double max_y, double min_x,double min_y, int n_dx, int n_dy, double dx, double dy, std::vector<std::vector<double> >& x,std::vector<std::vector<double> >& y, int n_c, int dim_col_t, int n_salti_colonne, Funz_C *f, double &maxC, int risp_Max, int cont_sim, std::string name_file);
55 
56 
57 void writeFunC_andHist(double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonne,
58  const int cont_sim, const int n_dx, const int n_dy,
59  const double min_x, const double min_y,
60  const double dx, const double dy,
61  const int n_x_min, const int n_x_max,
62  const int n_y_min, const int n_y_max,
63  double& maxC,
64  const double Dt,
65  Funz_C *f, int n_thread,
66  std::vector<std::vector<double> >& x,std::vector<std::vector<double> >& y,
67  int n_c, int& max_z, double& maxC_temp);
68 
69 #endif /* histogram3DMultiThreadV2_hpp */
void writeFunzCToFile(double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonne, 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)
This function write the histogram of the density to file.
Definition: histogram_3d_gnuplotV2.cpp:461
void writeFunC_andHist(double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonne, 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, std::vector< std::vector< double > > &x, std::vector< std::vector< double > > &y, int n_c, int &max_z, double &maxC_temp)
void writeHistToFile(double delta_y_p, double delta_x_p, int dim_col_t, int n_salti_colonne, 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, std::vector< std::vector< double > > &x, std::vector< std::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)
double histogram_3D_gnuplotV2MultiThreadV2(double max_x, double max_y, double min_x, double min_y, int n_dx, int n_dy, double dx, double dy, std::vector< std::vector< double > > &x, std::vector< std::vector< double > > &y, int n_c, int dim_col_t, int n_salti_colonne, Funz_C *f, double &maxC, int risp_Max, int cont_sim, std::string name_file)
Base class for the function describing the ligand concentration.
Definition: Funz_C.h:76
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, std::vector< std::vector< double > > &x, std::vector< std::vector< double > > &y, int &max_z_local, bool display)