CArl
Code Arlequin / C++ implementation
intersection_input_parser.cpp
Go to the documentation of this file.
1 /*
2  * intersection_input_parser.h
3  *
4  * Created on: Feb 14, 2017
5  * Author: Thiago Milanetto Schlittler
6  */
7 
9 
10 namespace carl
11 {
12 void get_intersection_input_params(GetPot& field_parser,
13  parallel_intersection_params& input_params) {
14 
15  // Set mesh files
16  if (field_parser.search(3, "--meshA", "-mA", "MeshA")) {
17  input_params.mesh_A = field_parser.next(
18  input_params.mesh_A);
19  } else {
20  homemade_error_msg("Missing mesh A!");
21  }
22 
23  if (field_parser.search(3, "--meshB", "-mB", "MeshB")) {
24  input_params.mesh_B = field_parser.next(
25  input_params.mesh_B);
26  } else {
27  homemade_error_msg("Missing mesh B!");
28  }
29 
30  if (field_parser.search(3, "--meshC", "-mC", "MeshC")) {
31  input_params.mesh_C = field_parser.next(
32  input_params.mesh_C);
33  } else {
34  homemade_error_msg("Missing the coupling mesh C!");
35  }
36 
37  if (field_parser.search(3, "--output", "-mO", "OutputBase")) {
38  input_params.output_base = field_parser.next(
39  input_params.output_base);
40  } else {
41  input_params.output_base = "inter_search";
42  }
43 
44  std::string meshing_method;
46  if (field_parser.search(2, "--meshingMethodType", "MeshingMethod")) {
47  meshing_method = field_parser.next(
48  meshing_method);
49  if(meshing_method == "CGAL")
50  {
52  }
53  else if(meshing_method == "TETGEN" )
54  {
56  }
57  }
58 
59  if(field_parser.search(1,"StitchInterMeshes")) {
60  input_params.bStitchInterMeshes = true;
61  }
62  else
63  {
64  input_params.bStitchInterMeshes = false;
65  }
66 
67  if(field_parser.search(2,"VerboseOutput", "--verbose")) {
68  input_params.bVerbose = true;
69  }
70  else
71  {
72  input_params.bVerbose = false;
73  }
74 };
75 
76 };
#define homemade_error_msg(msg)
Definition: common_header.h:73
bool bStitchInterMeshes
Stitch the intersection meshes?
void get_intersection_input_params(GetPot &field_parser, parallel_intersection_params &input_params)
Parser function for the parallel intersection search program (source: CArl_build_intersections.cpp)
carl::IntersectionMeshingMethod inter_meshing_method
Intersection meshing method. Values: carl::IntersectionMeshingMethod::CGAL or carl::IntersectionMeshi...
std::string output_base
Output filename base.
Structure containing the parameters for the parallel intersection search test program (source: CArl_b...
bool bVerbose
Print coupling partitioning?
std::string mesh_C
Coupling mesh path.