VERB4D
ReadInitialData.h
Go to the documentation of this file.
1 
9 #ifndef READINITIALDATA_H_
10 #define READINITIALDATA_H_
11 
12 #include <iostream>
13 #include <iomanip>
14 #include <string>
15 #include <sstream>
16 #include <fstream>
17 
18 #include <stdio.h>
19 #include <stdlib.h>
20 
21 //#include <strings.h>
22 #include <string>
23 using namespace std;
24 
25 #include "Logger.h"
26 
27 #include "UpdatableMatrix.h"
28 #include "Matrix.h"
29 
30 #include "Parameters.h"
31 
32 
33 
34 
35 //bool ReadInitialData(string InputFolder,
36 // int &P_size, int &R_size, int &I_size, int &K_size, int &L_size,
37 // long int &it_total, double &dt, double &output_time, double &total_time, int &output_step);
38 bool ReadInitialData(string &InputFolder, string &OutputFolder, int argc, char* argv[],
39  double &total_time, double &dt, double &output_time, double &time_first, long int &it_first, int &max_threads,
40  string &inversion_method, string &use_matlab, string &include_boundary,
41  Matrix4D<double> &PSD,
43  int &P_size, int &R_size, int &V_size, int &K_size, int &L_size,
45  string &P_LBC_type, string &P_UBC_type, string &R_LBC_type, string &R_UBC_type, string &V_LBC_type, string &V_UBC_type, string &K_LBC_type, string &K_UBC_type, string &L_LBC_type, string &L_UBC_type,
50 
51 
52 // Implemented function but not ever used
53 /* void ReadBoundaryCondition(
54  ifstream &input,
55  Matrix3D<double> psd_slice,
56  // UpdatableMatrix2D &BC,
57  Matrix3D<double> &BC,
58  string &BC_type,
59  Matrix3D<double> Q_slice1, Matrix3D<double> Q_slice2, Matrix3D<double> Q_slice3)
60 */
61 
62 #endif /* READINITIALDATA_H_ */
Matrix 1D, 2D, 3D and 4D and operations with them.
Holds the parameters along with their corresponding file and arguments.
Logs the messages sent, including information, warnings, and errors.
Same functionality as matrices found in Matrix.h but can also be updated from ini-files.
A matrix that can be created in 1, 2, 3, or 4 dimensions with the ability to be updated.
Definition: UpdatableMatrix.h:103
A matrix of 3 dimensions that is immutable.
Definition: Matrix.h:235
A matrix of 4 dimensions that is immutable.
Definition: Matrix.h:340
A matrix that can be created in 1, 2, 3, or 4 dimensions with the ability to be updated.
Definition: UpdatableMatrix.h:38
bool ReadInitialData(string &InputFolder, string &OutputFolder, int argc, char *argv[], double &total_time, double &dt, double &output_time, double &time_first, long int &it_first, int &max_threads, string &inversion_method, string &use_matlab, string &include_boundary, Matrix4D< double > &PSD, Matrix4D< double > &P, Matrix4D< double > &R, Matrix4D< double > &V, Matrix4D< double > &K, UpdatableMatrix< Matrix4D< double > > &L, int &P_size, int &R_size, int &V_size, int &K_size, int &L_size, Matrix3D< double > &P_LBC, Matrix3D< double > &P_UBC, UpdatableMatrix< Matrix3D< double > > &R_LBC, UpdatableMatrix< Matrix3D< double > > &R_UBC, UpdatableMatrix< Matrix3D< double > > &V_LBC, UpdatableMatrix< Matrix3D< double > > &V_UBC, UpdatableMatrix< Matrix3D< double > > &K_LBC, UpdatableMatrix< Matrix3D< double > > &K_UBC, UpdatableMatrix< Matrix3D< double > > &L_LBC, UpdatableMatrix< Matrix3D< double > > &L_UBC, string &P_LBC_type, string &P_UBC_type, string &R_LBC_type, string &R_UBC_type, string &V_LBC_type, string &V_UBC_type, string &K_LBC_type, string &K_UBC_type, string &L_LBC_type, string &L_UBC_type, UpdatableListMatrix< Matrix4D< double > > &DLL, UpdatableListMatrix< Matrix4D< double > > &DVV, UpdatableListMatrix< Matrix4D< double > > &DKK, UpdatableListMatrix< Matrix4D< double > > &DVK, UpdatableMatrix< Matrix4D< double > > &VP, UpdatableMatrix< Matrix4D< double > > &VL, UpdatableMatrix< Matrix4D< double > > &G_local, UpdatableMatrix< Matrix4D< double > > &G_radial, UpdatableListMatrix< Matrix4D< double > > &Sources, UpdatableListMatrix< Matrix4D< double > > &Losses)
Definition: ReadInitialData.cpp:139