CArl
Code Arlequin / C++ implementation
carl_feti_set_sol_input_parser.cpp
Go to the documentation of this file.
1 /*
2  * carl_feti_set_sol_input_parser.h
3  *
4  * Created on: Feb 14, 2017
5  * Author: Thiago Milanetto Schlittler
6  */
7 
8 
10 
11 namespace carl
12 {
13 
14 void get_input_params(GetPot& field_parser,
15  feti_set_sol_params& input_params) {
16 
17  if (field_parser.search(1, "ScratchFolderPath")) {
18  input_params.scratch_folder_path = field_parser.next(
19  input_params.scratch_folder_path);
20  } else {
21  homemade_error_msg("Missing the external scratch folder path!");
22  }
23 
24  if (field_parser.search(1,"UseRigidBodyModesB"))
25  {
26  input_params.bUseRigidBodyModes = true;
27  } else {
28  input_params.bUseRigidBodyModes = false;
29  }
30 
31  if (field_parser.search(1,"OutputFolder")) {
32  input_params.output_folder = field_parser.next(
33  input_params.output_folder);
34  } else {
35  homemade_error_msg("Missing the output filename base!");
36  }
37 };
38 
39 };
#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 scratch_folder_path
Path to the folder which will be used to save the temporary files during the solve operation...
bool bUseRigidBodyModes
[RB] Use the rigid body modes for the micro system?
std::string output_folder
Path to the coupled outup folder.
Structure containing the parameters for the setup initialization of the FETI solver.