Added v_flow as paramter to deactivate flow data or set const value.

This commit is contained in:
Christian
2019-09-19 12:57:07 +02:00
parent 5003a9e7d8
commit e54354d91d
10 changed files with 129 additions and 81 deletions
+18
View File
@@ -24,6 +24,24 @@ Vec3_Container::~Vec3_Container() {
delete[] data;
}
Vec3_Container::Vec3_Container(const Vec3_Container& other) : data(nullptr) {
*this = other;
}
Vec3_Container &Vec3_Container::operator=(const Vec3_Container& other) {
z_scale = other.z_scale;
r_scale = other.r_scale;
phi_scale = other.phi_scale;
int num_tot_bins = z_scale.get_number_bins() * r_scale.get_number_bins() * phi_scale.get_number_bins();
delete[] data;
data = new vec3[num_tot_bins];
for (int i=0; i< num_tot_bins; i++) {
data[i] = other.data[i];
}
return *this;
}
void Vec3_Container::load_data(std::string load_path) {
int num_tot_bins = z_scale.get_number_bins() * r_scale.get_number_bins() * phi_scale.get_number_bins();
bool *check_array = new bool[num_tot_bins];