|
@@ -404,8 +404,9 @@ void boostJsonObject::FromParamJson(string param)
|
|
da_struct->surfParam->min_size = sur_data.get<std::string>("min_size");
|
|
da_struct->surfParam->min_size = sur_data.get<std::string>("min_size");
|
|
da_struct->surfParam->SurfStyle = sur_data.get<std::string>("surfStyle");
|
|
da_struct->surfParam->SurfStyle = sur_data.get<std::string>("surfStyle");
|
|
da_struct->surfParam->Global_physical_size = sur_data.get<std::string>("global_physical_size");
|
|
da_struct->surfParam->Global_physical_size = sur_data.get<std::string>("global_physical_size");
|
|
- }catch(exception ex){
|
|
|
|
|
|
+ }catch(myException &ex){
|
|
std::cout<<"-----no surfParam-----"<<std::endl;
|
|
std::cout<<"-----no surfParam-----"<<std::endl;
|
|
|
|
+ throw myException("surfParam miss some parameters!");
|
|
da_struct->surfParam0 = false;
|
|
da_struct->surfParam0 = false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -422,8 +423,9 @@ void boostJsonObject::FromParamJson(string param)
|
|
da_struct->surfParam->force_bad_surface_element_removal = sur1_data.get<std::string>("force_bad_surface_element_removal");
|
|
da_struct->surfParam->force_bad_surface_element_removal = sur1_data.get<std::string>("force_bad_surface_element_removal");
|
|
da_struct->surfParam->discard_input_topology = sur1_data.get<std::string>("discard_input_topology");
|
|
da_struct->surfParam->discard_input_topology = sur1_data.get<std::string>("discard_input_topology");
|
|
da_struct->surfParam->create_tag_on_collision = sur1_data.get<std::string>("create_tag_on_collision");
|
|
da_struct->surfParam->create_tag_on_collision = sur1_data.get<std::string>("create_tag_on_collision");
|
|
- }catch(exception ex){
|
|
|
|
|
|
+ }catch(myException &ex){
|
|
std::cout<<"-----no surfParam1-----"<<std::endl;
|
|
std::cout<<"-----no surfParam1-----"<<std::endl;
|
|
|
|
+ throw myException("surfParam1 miss some parameters!");
|
|
da_struct->surfParam1 = false;
|
|
da_struct->surfParam1 = false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -435,8 +437,9 @@ void boostJsonObject::FromParamJson(string param)
|
|
da_struct->surfParam->scaled_jacobian_threshold_value = sur2_data.get<std::string>("scaled_jacobian_threshold_value");
|
|
da_struct->surfParam->scaled_jacobian_threshold_value = sur2_data.get<std::string>("scaled_jacobian_threshold_value");
|
|
da_struct->surfParam->optimisation = sur2_data.get<std::string>("optimisation");
|
|
da_struct->surfParam->optimisation = sur2_data.get<std::string>("optimisation");
|
|
da_struct->surfParam->correct_surface_intersections = sur2_data.get<std::string>("correct_surface_intersections");
|
|
da_struct->surfParam->correct_surface_intersections = sur2_data.get<std::string>("correct_surface_intersections");
|
|
- }catch(exception ex){
|
|
|
|
|
|
+ }catch(myException &ex){
|
|
std::cout<<"-----no surfParam2-----"<<std::endl;
|
|
std::cout<<"-----no surfParam2-----"<<std::endl;
|
|
|
|
+ throw myException("surfParam2 miss some parameters!");
|
|
da_struct->surfParam2 = false;
|
|
da_struct->surfParam2 = false;
|
|
}
|
|
}
|
|
#if 0
|
|
#if 0
|
|
@@ -492,8 +495,9 @@ void boostJsonObject::FromParamJson(string param)
|
|
da_struct->clrParam->use_default_settings_for = cleaner_data.get<std::string>("use_default_settings_for");
|
|
da_struct->clrParam->use_default_settings_for = cleaner_data.get<std::string>("use_default_settings_for");
|
|
da_struct->clrParam->overlap_angle = cleaner_data.get<std::string>("overlap_angle");
|
|
da_struct->clrParam->overlap_angle = cleaner_data.get<std::string>("overlap_angle");
|
|
da_struct->clrParam->resolution_length = cleaner_data.get<std::string>("resolution_length");
|
|
da_struct->clrParam->resolution_length = cleaner_data.get<std::string>("resolution_length");
|
|
- }catch(exception ex){
|
|
|
|
|
|
+ }catch(myException &ex){
|
|
std::cout<<"-----no cleanerParam-----"<<std::endl;
|
|
std::cout<<"-----no cleanerParam-----"<<std::endl;
|
|
|
|
+ throw myException("cleanerParam miss some parameters!");
|
|
da_struct->bCleanerSection = false;
|
|
da_struct->bCleanerSection = false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -507,8 +511,9 @@ void boostJsonObject::FromParamJson(string param)
|
|
da_struct->tetraParam->max_size = tetra_data.get<std::string>("max_size");
|
|
da_struct->tetraParam->max_size = tetra_data.get<std::string>("max_size");
|
|
da_struct->style = 1;
|
|
da_struct->style = 1;
|
|
|
|
|
|
- }catch(exception ex){
|
|
|
|
|
|
+ }catch(myException &ex){
|
|
std::cout<<"-----no TetraParam-----"<<std::endl;
|
|
std::cout<<"-----no TetraParam-----"<<std::endl;
|
|
|
|
+ throw myException("tetraParam miss some parameters!");
|
|
da_struct->TetraParam_ = false;
|
|
da_struct->TetraParam_ = false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -517,8 +522,9 @@ void boostJsonObject::FromParamJson(string param)
|
|
da_struct->HexaParam_ = true;
|
|
da_struct->HexaParam_ = true;
|
|
da_struct->hexaParam->components = hexa_data.get<std::string>("components");
|
|
da_struct->hexaParam->components = hexa_data.get<std::string>("components");
|
|
da_struct->style = 2;
|
|
da_struct->style = 2;
|
|
- }catch(exception ex){
|
|
|
|
|
|
+ }catch(myException &ex){
|
|
std::cout<<"-----no HexaParam-----"<<std::endl;
|
|
std::cout<<"-----no HexaParam-----"<<std::endl;
|
|
|
|
+ throw myException("hexaParam miss some parameters!");
|
|
da_struct->HexaParam_ = false;
|
|
da_struct->HexaParam_ = false;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -531,8 +537,9 @@ void boostJsonObject::FromParamJson(string param)
|
|
da_struct->hybridParam->normal_direction = hybrid_data.get<std::string>("normal_direction");
|
|
da_struct->hybridParam->normal_direction = hybrid_data.get<std::string>("normal_direction");
|
|
da_struct->hybridParam->boundary_layer_global_initial_height = hybrid_data.get<std::string>("boundary_layer_global_initial_height");
|
|
da_struct->hybridParam->boundary_layer_global_initial_height = hybrid_data.get<std::string>("boundary_layer_global_initial_height");
|
|
da_struct->hybridParam->boundary_layer_geometric_progression = hybrid_data.get<std::string>("boundary_layer_geometric_progression");
|
|
da_struct->hybridParam->boundary_layer_geometric_progression = hybrid_data.get<std::string>("boundary_layer_geometric_progression");
|
|
- }catch(exception ex){
|
|
|
|
|
|
+ }catch(myException &ex){
|
|
std::cout<<"-----no HybridParam-----"<<std::endl;
|
|
std::cout<<"-----no HybridParam-----"<<std::endl;
|
|
|
|
+ throw myException("hybridParam miss some parameters!");
|
|
da_struct->HybridParaml_ = false;
|
|
da_struct->HybridParaml_ = false;
|
|
}
|
|
}
|
|
}
|
|
}
|