EcoliSimulator
2.0.1a
|
#include "filmato_3D_gnuplotMultiThread.hpp"
#include <iostream>
#include <fstream>
#include <cmath>
#include <thread>
#include <sys/stat.h>
#include <unistd.h>
#include <chrono>
#include <limits>
#include <ctime>
#include <array>
#include "GlobalVariables.h"
#include "GnuplotGlobal.h"
#include "apngasm_Global.h"
#include "ErrorsDefinition.h"
#include "Colori.h"
#include "sssr.h"
#include "Declar_funz.h"
#include <sstream>
#include "Funz_C.h"
#include "setSizesTitles.hpp"
Macros | |
#define | SAVE 0 |
#define | NO_SAVE 1 |
#define | DENSITY 0 |
#define | FUNZC 1 |
#define | min_(a, b) ( ((a) < (b)) ? (a) : (b) ) |
Functions | |
int | writeLog (string what, string msg) |
this function write to the Log file. More... | |
bool | is_file_exist (const char *fileName) |
void | filmato_3D_gnuplotMultiT (string names_info[], double max_x, double max_y, double min_x, double min_y, double max_z, int dim_col_t, Funz_C *f, int cont_gen_sim, double max_fc) |
int | scriptFilmato3DgnuplotMultiT (double Dt, double maxX, double maxY, double minX, double minY, double max_z, double max_fc, int dim_col_t, int save_, int cont_sim, int i, int n_threadTot) |
int | lunchMultiThread3Dgnuplot (int n_thread, int cont_sim, bool last, int n_max, int n_thread_tot) |
This function produce a 'local' script for the multi thread and lunch gnuplot. More... | |
string | setNamescript3DMultiT (int cont_sim, int nthread) |
set name 3D film script for gnuplot file multi-thread More... | |
void | deleteSCRIPT_GNUPLOTplay_videoMultiT (int cont_sim, int n_thread_tot) |
delete files SCRIPT-GNUPLOT ... play_video.gnu multitherad. More... | |
int | checkFrames (int n_thread_tot, int cont_sim, int n_max) |
this function is used to check if the mulithread creation of the frames had some problems ... More... | |
#define DENSITY 0 |
#define FUNZC 1 |
#define min_ | ( | a, | |
b | |||
) | ( ((a) < (b)) ? (a) : (b) ) |
#define NO_SAVE 1 |
#define SAVE 0 |
int checkFrames | ( | int | n_thread_tot, |
int | cont_sim, | ||
int | n_max | ||
) |
this function is used to check if the mulithread creation of the frames had some problems ...
void deleteSCRIPT_GNUPLOTplay_videoMultiT | ( | int | cont_sim, |
int | n_thread_tot | ||
) |
delete files SCRIPT-GNUPLOT ... play_video.gnu multitherad.
void filmato_3D_gnuplotMultiT | ( | string | names_info[], |
double | max_x, | ||
double | max_y, | ||
double | min_x, | ||
double | min_y, | ||
double | max_z, | ||
int | dim_col_t, | ||
Funz_C * | f, | ||
int | cont_gen_sim, | ||
double | max_fc | ||
) |
This fuction crate the script so save, see save 4,9,16 snapshot of the density and ligand. it is not very well written. there are a lot of if end so on that can be throw away. The fact is that if we save the file and want to see it, then we first save and then play with firefox (better immage) Note: problem lunching firefox with Windows. To be check! note that we have to be careful how to pass the parameters to apngasm if we;re on Unix or Windows (line 213)
bool is_file_exist | ( | const char * | fileName | ) |
Check if a file with the given name exists
int lunchMultiThread3Dgnuplot | ( | int | n_thread, |
int | cont_sim, | ||
bool | last, | ||
int | n_max, | ||
int | n_thread_tot | ||
) |
This function produce a 'local' script for the multi thread and lunch gnuplot.
int scriptFilmato3DgnuplotMultiT | ( | double | Dt, |
double | maxX, | ||
double | maxY, | ||
double | minX, | ||
double | minY, | ||
double | max_z, | ||
double | max_fc, | ||
int | dim_col_t, | ||
int | save_, | ||
int | cont_sim, | ||
int | i, | ||
int | n_threadTot | ||
) |
This function writes the script for the video 3d gnuplot
string setNamescript3DMultiT | ( | int | cont_sim, |
int | nthread | ||
) |
set name 3D film script for gnuplot file multi-thread
int writeLog | ( | string | what, |
string | msg | ||
) |
this function write to the Log file.