Up to this version, the time series output was working only for
sequential binary output. Now it works for every output combination
(sequential, parallel, binary, ascii)
/** @brief It calculates content of updated configuration and outputs it in a file.
@@ -187,8 +201,15 @@ namespace Output
std::stringcfg_content_;/**< Contents of the input cfg (Configuration) file */
std::stringoutput_option_;/**< Strategy to use for outputting into files. PAR for parallel outputs or SEQ for sequential outputs. PAR saves each MPI partitions subdomain in separate files and SEQ saves the whole domain into one file. */
intobservation_loc_size_;/**< Number of observation cells */
Constants::sources_list_tobservation_cells_;/**< Index position of observation cells in main domain */
intnum_of_obs_points_;/**< Number of observation points per subdomain */
intnum_of_obs_points_global_;/**< Number of observation points in the global domain */
std::vector<int>relative_obs_index_;/**< relative index position of observation cells per subdomain wrt to the global domain*/
std::vector<int>time_series_index_relative_;/** relative index position of each observation cell in the global array after gathering*/
int*relative_obs_index_global_;/**< relative index position of observation cells in the global domain*/
int*obs_points_per_subdomain;/**< array of size MPI ranks containing the number of observation points per subdomain*/
Constants::sources_list_tobservation_cells_;/**< Index position of observation cells in local domain */
Constants::sources_list_tobservation_cells_global_;/**< Index position of observation cells in global domain */
public:
@@ -197,6 +218,11 @@ namespace Output
longlongtotal_data_size=0;/**< Number of cells in main domain */
int*displs=NULL;/**< Position array to hold each sub domains starting point in main domain */
T*total_data_arr=NULL;/**< Main domains data or collection data of every subdomain */
int*displs_time_series=NULL;/**< Position array to hold each sub domains starting point in main domain for time series */
T*total_data_time_series=NULL;/**< Main domain data for time series */