CArl
Code Arlequin / C++ implementation
libmesh_apply_solution_input_parser.cpp
Go to the documentation of this file.
1 /*
2  * libmesh_apply_solution_input_parser.h
3  *
4  * Created on: Apr 16, 2017
5  * Author: Thiago Milanetto Schlittler
6  */
7 
9 
10 namespace carl
11 {
12 void get_input_params(GetPot& field_parser,
14 
15  if (field_parser.search(2, "InputVector", "--input-vec" )) {
16  input_params.input_vector = field_parser.next(
17  input_params.input_vector);
18  } else {
19  homemade_error_msg("Missing the displacement field vector!");
20  }
21 
22  if (field_parser.search(2, "InputMesh", "--input-mesh")) {
23  input_params.input_mesh = field_parser.next(
24  input_params.input_mesh);
25  } else {
26  homemade_error_msg("Missing the input mesh!");
27  }
28 
29  if (field_parser.search(2, "PhysicalParameters", "--physical-params")) {
30  input_params.physical_params_file = field_parser.next(
31  input_params.physical_params_file);
32  } else {
33  homemade_error_msg("Missing the physical params file!");
34  }
35 
36  if (field_parser.search(2, "OutputMesh", "--output-mesh")) {
37  input_params.output_mesh = field_parser.next(
38  input_params.output_mesh);
39  } else {
40  homemade_error_msg("Missing the output mesh path!");
41  }
42 };
43 
44 };
#define homemade_error_msg(msg)
Definition: common_header.h:73
void get_input_params(GetPot &field_parser, feti_iterate_params &input_params)
Parser function for the coupled solver test programs.
std::string input_vector
Path to the input vector containing the displacements.
std::string input_mesh
Path to the mesh that will be deformed.