Added v_flow as paramter to deactivate flow data or set const value.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user